Exprimental tweak for DWM to reduce the input lag

Everything about latency. This section is mainly user/consumer discussion. (Peer-reviewed scientific discussion should go in Laboratory section). Tips, mouse lag, display lag, game engine lag, network lag, whole input lag chain, VSYNC OFF vs VSYNC ON, and more! Input Lag Articles on Blur Busters.
Post Reply
Racord
Posts: 4
Joined: 30 May 2022, 14:26

Exprimental tweak for DWM to reduce the input lag

Post by Racord » 05 Jun 2022, 07:20

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 :)

User avatar
RealNC
Site Admin
Posts: 4430
Joined: 24 Dec 2013, 18:32
Contact:

Re: Exprimental tweak for DWM to reduce the input lag

Post by RealNC » 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?
SteamGitHubStack Overflow
The views and opinions expressed in my posts are my own and do not necessarily reflect the official policy or position of Blur Busters.

User avatar
dervu
Posts: 394
Joined: 17 Apr 2020, 18:09

Re: Exprimental tweak for DWM to reduce the input lag

Post by dervu » 05 Jun 2022, 09:02

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
Ryzen 7950X3D / MSI GeForce RTX 4090 Gaming X Trio / ASUS TUF GAMING X670E-PLUS / 2x16GB DDR5@6000 G.Skill Trident Z5 RGB / Dell Alienware AW3225QF / Logitech G PRO X SUPERLIGHT / SkyPAD Glass 3.0 / Wooting 60HE / DT 700 PRO X || EMI Input lag issue survivor (source removed) 8-)

Racord
Posts: 4
Joined: 30 May 2022, 14:26

Re: Exprimental tweak for DWM to reduce the input lag

Post by Racord » 05 Jun 2022, 09:03

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.

User avatar
RealNC
Site Admin
Posts: 4430
Joined: 24 Dec 2013, 18:32
Contact:

Re: Exprimental tweak for DWM to reduce the input lag

Post by RealNC » 05 Jun 2022, 11:03

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.
SteamGitHubStack Overflow
The views and opinions expressed in my posts are my own and do not necessarily reflect the official policy or position of Blur Busters.

Racord
Posts: 4
Joined: 30 May 2022, 14:26

Re: Exprimental tweak for DWM to reduce the input lag

Post by Racord » 05 Jun 2022, 12:07

Hmm.. maybe some other tweak affected the input lag :roll:

mybad
Posts: 50
Joined: 17 Mar 2022, 21:12

Re: Exprimental tweak for DWM to reduce the input lag

Post by mybad » 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.

ashrr
Posts: 50
Joined: 21 Jun 2019, 10:12

Re: Exprimental tweak for DWM to reduce the input lag

Post by ashrr » 05 Jun 2022, 19:58

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.

Post Reply