Page 1 of 1

Exprimental tweak for DWM to reduce the input lag

Posted: 05 Jun 2022, 07:20
by Racord
Experimentally! Сarefully! Accidentally found one interesting thing. To play Forza Motorsport on a xbox controller, to reduce fps drops, it is recommended to use the "GetBounds+29 eb 04" command, I tried it and got even more input lag than I had. I tried to undo the changes and entered "GetBounds+0 eb 04" and it seems that the input lag my mouse has decreased. I don’t know how to undo the change, try at your own peril and risk, you may have to reinstall Windows after that. After entering the command, Windows will freeze, you will have to make a hard reset. I also recommend shutdown PC after booting with holding the shift button to reset the driver cache.

Instruction:
1. Ensure you’re using a 64-bit copy of Windows 10
2. Install the Debugging Tools for Windows (standalone) https://developer.microsoft.com/windows ... ndows-sdk/ (mark only one chekbox with debugging tools)
3. Open CMD by admin
4. Open the folder the tools were installed to in an elevated command prompt (as Admin) like this:
cd C:\program files (x86)\Windows Kits\10\Debuggers\x64\
5. Carefully issue the following command: cdb -pn dwm.exe -c “.symfix;eb ism32k!DesktopInputDisplay::GetBounds+0 eb 04;.detach;”

Need to check :)

Re: Exprimental tweak for DWM to reduce the input lag

Posted: 05 Jun 2022, 08:04
by RealNC
Racord wrote:
05 Jun 2022, 07:20
5. Carefully issue the following command: cdb -pn dwm.exe -c “.symfix;eb ism32k!DesktopInputDisplay::GetBounds+0 eb 04;.detach;”
And what does that do? And is there a source for this where you found it?

Re: Exprimental tweak for DWM to reduce the input lag

Posted: 05 Jun 2022, 09:02
by dervu
RealNC wrote:
05 Jun 2022, 08:04
Racord wrote:
05 Jun 2022, 07:20
5. Carefully issue the following command: cdb -pn dwm.exe -c “.symfix;eb ism32k!DesktopInputDisplay::GetBounds+0 eb 04;.detach;”
And what does that do? And is there a source for this where you found it?
https://www.thurrott.com/windows/window ... windows-10

Re: Exprimental tweak for DWM to reduce the input lag

Posted: 05 Jun 2022, 09:03
by Racord
RealNC wrote:
05 Jun 2022, 08:04
And what does that do? And is there a source for this where you found it?
I assume that it reduces some kind of input buffer. Found here: https://forums.forzamotorsport.net/t/fr ... /55?page=3
Oh, wow, I didn’t find this page, apparently this is the original source. "We could have just overwritten the whole instruction with 6 no-operation instructions but that's more keys to punch" hmm.. wondering how to do that. Apparently I just broke something with my zero. Since +29 eb 04 my input lag has only increased.

Re: Exprimental tweak for DWM to reduce the input lag

Posted: 05 Jun 2022, 11:03
by RealNC
Racord wrote:
05 Jun 2022, 07:20
I don’t know how to undo the change, try at your own peril and risk, you may have to reinstall Windows after that.
Not sure how that's possible, since cdb.exe modifies the in-memory process, it doesn't change any files. So if you restart dwm.exe, the changes are lost. (Or if you reboot.)

Unless I misunderstood something.

Re: Exprimental tweak for DWM to reduce the input lag

Posted: 05 Jun 2022, 12:07
by Racord
Hmm.. maybe some other tweak affected the input lag :roll:

Re: Exprimental tweak for DWM to reduce the input lag

Posted: 05 Jun 2022, 19:19
by mybad
The author of this tweak said:
This issue was fixed in Build 14328 (I've confirmed this myself)
but who cares.

Re: Exprimental tweak for DWM to reduce the input lag

Posted: 05 Jun 2022, 19:58
by ashrr
mybad wrote:
05 Jun 2022, 19:19
The author of this tweak said:
This issue was fixed in Build 14328 (I've confirmed this myself)
but who cares.
This just looks like something related to controllers and how using one would increase CPU usage after a short while which would result in lower fps when using this 2016 build of Win 10.