What are the typical lag input delays on computers? + I measured mine

Everything about latency. Tips, testing methods, 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.
User avatar
MaxTendency
Posts: 59
Joined: 22 Jun 2020, 01:47

Re: What are the typical lag input delays on computers? + I measured mine

Post by MaxTendency » 05 Jul 2020, 01:03

RealNC wrote:
05 Jul 2020, 00:30
If a game was developed properly and you're using Windows 10, then running it in borderless mode should incur no lag penalty. But if you're on W7 or W8, or the game is incompatible with the W10 DWM enhancements, then there's no way around the DWM composition latency.
On w7 you can just permanently disable dwm. I'm very certain it can be done in w8 /8.1 as well but with a few extra steps. You can disable dwm on w10 as well, but somethings breaks or bugs out. Best to disable it before gaming and enabling it afterwards on w10.

viewtopic.php?f=10&t=7033&start=50#p54439

Brainlet
Posts: 100
Joined: 30 May 2020, 12:39
Contact:

Re: What are the typical lag input delays on computers? + I measured mine

Post by Brainlet » 05 Jul 2020, 01:09

Sadly all these attempts by Microsoft to fix their mess are futile because most game developers arent up to date with their latency mitigation strategies and stick to the old ways which just run far superior on Windows 7 without DWM in exclusive FS...
Starting point for beginners: PC Optimization Hub

Unixko
Posts: 212
Joined: 04 Jul 2020, 08:28

Re: What are the typical lag input delays on computers? + I measured mine

Post by Unixko » 05 Jul 2020, 01:54

RealNC wrote:
05 Jul 2020, 00:30
Unixko wrote:
04 Jul 2020, 23:02
nah man dmw is placebo
DWM is definitely not placebo when it comes to latency and performance. Microsoft has been trying to offer ways to bypass DWM in Windows 10 due to its impact. "Fullscreen Optimizations" for example, which converts fullscreen exclusive ("FSE") to borderless incurs a DWM overhead and thus MS has changed how DWM works in Windows 10 and it tries to disable itself when possible. From the MS dev blog:
To get back this performance overhead, we enhanced the DWM to recognize when a game is running in a borderless full screen window with no other applications on the screen. In this circumstance, the DWM gives control of the display and almost all the CPU/GPU power to the game. Which in turn allows equivalent performance to running a game in FSE.
However, it's not fully automatic. The game needs to be using the correct flip model, as described in another Microsoft article:
These are optimizations that are enabled for applications using flip model swapchains. Depending on window and buffer configuration, it is possible to bypass desktop composition entirely, and directly send application frames to the screen, in the same way that exclusive fullscreen does.

...

Once your swapchain has been “DirectFlipped“, then the DWM can go to sleep, and only wake up when something changes outside of your application. Your app frames are sent directly to screen, independently, with the same efficiency as fullscreen exclusive.
If a game was developed properly and you're using Windows 10, then running it in borderless mode should incur no lag penalty. But if you're on W7 or W8, or the game is incompatible with the W10 DWM enhancements, then there's no way around the DWM composition latency.
i just want to fix my mouse floatly sluggish everywhere deskop bios ingame dmw doesnt change anything for me

Conan
Posts: 98
Joined: 18 May 2020, 06:50

Re: What are the typical lag input delays on computers? + I measured mine

Post by Conan » 05 Jul 2020, 03:53

how do you disable it before gaming and then enable it afterwards?
i mean, why just not leave it disabled?
what, you just kill the process/service? and turn it back on afterwards?

deama
Posts: 370
Joined: 07 Aug 2019, 12:00

Re: What are the typical lag input delays on computers? + I measured mine

Post by deama » 05 Jul 2020, 05:26

Unixko wrote:
05 Jul 2020, 01:54
i just want to fix my mouse floatly sluggish everywhere deskop bios ingame dmw doesnt change anything for me
Maybe it's something to do with the USB polling being bad in that particular port? Have you tried other USB slots for your mouse?
Conan wrote:
05 Jul 2020, 03:53
how do you disable it before gaming and then enable it afterwards?
i mean, why just not leave it disabled?
what, you just kill the process/service? and turn it back on afterwards?
You can write a simple .bat script that disables dwm temporarily, then you can just hotkey the script using autohotkey onto a key on your keyboard and voila, you disable/enable dwm by pressing just a button.

Conan
Posts: 98
Joined: 18 May 2020, 06:50

Re: What are the typical lag input delays on computers? + I measured mine

Post by Conan » 05 Jul 2020, 05:57

deama wrote:
05 Jul 2020, 05:26
You can write a simple .bat script that disables dwm temporarily
I can't. :lol:

But thanks tho, I hope I won't break something by disabling it.

deama
Posts: 370
Joined: 07 Aug 2019, 12:00

Re: What are the typical lag input delays on computers? + I measured mine

Post by deama » 05 Jul 2020, 06:06

Conan wrote:
05 Jul 2020, 05:57
deama wrote:
05 Jul 2020, 05:26
You can write a simple .bat script that disables dwm temporarily
I can't. :lol:

But thanks tho, I hope I won't break something by disabling it.
I can give you mine that disables it until you restart, though it's for windows 8.1.

Mr1991
Posts: 151
Joined: 24 Nov 2019, 10:10

Re: What are the typical lag input delays on computers? + I measured mine

Post by Mr1991 » 05 Jul 2020, 07:00

Unixko wrote:
05 Jul 2020, 01:54
RealNC wrote:
05 Jul 2020, 00:30
Unixko wrote:
04 Jul 2020, 23:02
nah man dmw is placebo
DWM is definitely not placebo when it comes to latency and performance. Microsoft has been trying to offer ways to bypass DWM in Windows 10 due to its impact. "Fullscreen Optimizations" for example, which converts fullscreen exclusive ("FSE") to borderless incurs a DWM overhead and thus MS has changed how DWM works in Windows 10 and it tries to disable itself when possible. From the MS dev blog:
To get back this performance overhead, we enhanced the DWM to recognize when a game is running in a borderless full screen window with no other applications on the screen. In this circumstance, the DWM gives control of the display and almost all the CPU/GPU power to the game. Which in turn allows equivalent performance to running a game in FSE.
However, it's not fully automatic. The game needs to be using the correct flip model, as described in another Microsoft article:
These are optimizations that are enabled for applications using flip model swapchains. Depending on window and buffer configuration, it is possible to bypass desktop composition entirely, and directly send application frames to the screen, in the same way that exclusive fullscreen does.

...

Once your swapchain has been “DirectFlipped“, then the DWM can go to sleep, and only wake up when something changes outside of your application. Your app frames are sent directly to screen, independently, with the same efficiency as fullscreen exclusive.
If a game was developed properly and you're using Windows 10, then running it in borderless mode should incur no lag penalty. But if you're on W7 or W8, or the game is incompatible with the W10 DWM enhancements, then there's no way around the DWM composition latency.
i just want to fix my mouse floatly sluggish everywhere deskop bios ingame dmw doesnt change anything for me
Manually set pci gen settings to gen 3 if your bios allows it, HPET off in bios, aswell as Legacy boot instead of UEFI if you want less of a "floaty" mouse feeling. Use hdmi instead of displayport, usb 2 instead of 3, also, cpu/ram voltage has an effect on mouse movement, higher voltages lower the deadzone, thus making it more "floaty", so if you don't want that you can try lowering it if possible.

And then you also want the right ram timings.

Unixko
Posts: 212
Joined: 04 Jul 2020, 08:28

Re: What are the typical lag input delays on computers? + I measured mine

Post by Unixko » 05 Jul 2020, 07:47

Mr1991 wrote:
05 Jul 2020, 07:00
Unixko wrote:
05 Jul 2020, 01:54
RealNC wrote:
05 Jul 2020, 00:30
Unixko wrote:
04 Jul 2020, 23:02
nah man dmw is placebo
DWM is definitely not placebo when it comes to latency and performance. Microsoft has been trying to offer ways to bypass DWM in Windows 10 due to its impact. "Fullscreen Optimizations" for example, which converts fullscreen exclusive ("FSE") to borderless incurs a DWM overhead and thus MS has changed how DWM works in Windows 10 and it tries to disable itself when possible. From the MS dev blog:
To get back this performance overhead, we enhanced the DWM to recognize when a game is running in a borderless full screen window with no other applications on the screen. In this circumstance, the DWM gives control of the display and almost all the CPU/GPU power to the game. Which in turn allows equivalent performance to running a game in FSE.
However, it's not fully automatic. The game needs to be using the correct flip model, as described in another Microsoft article:
These are optimizations that are enabled for applications using flip model swapchains. Depending on window and buffer configuration, it is possible to bypass desktop composition entirely, and directly send application frames to the screen, in the same way that exclusive fullscreen does.

...

Once your swapchain has been “DirectFlipped“, then the DWM can go to sleep, and only wake up when something changes outside of your application. Your app frames are sent directly to screen, independently, with the same efficiency as fullscreen exclusive.
If a game was developed properly and you're using Windows 10, then running it in borderless mode should incur no lag penalty. But if you're on W7 or W8, or the game is incompatible with the W10 DWM enhancements, then there's no way around the DWM composition latency.
i just want to fix my mouse floatly sluggish everywhere deskop bios ingame dmw doesnt change anything for me
Manually set pci gen settings to gen 3 if your bios allows it, HPET off in bios, aswell as Legacy boot instead of UEFI if you want less of a "floaty" mouse feeling. Use hdmi instead of displayport, usb 2 instead of 3, also, cpu/ram voltage has an effect on mouse movement, higher voltages lower the deadzone, thus making it more "floaty", so if you don't want that you can try lowering it if possible.

And then you also want the right ram timings.
pci gen is 3 hpet in bios is on off in OS for sync timer i have legacy boot hdmi i can try 2.0 for 240 hz idk if will be better i play with 2.0 usb with my mouse and keyboard and higher voltages i have my numbers here https://ctrlv.sk/g4Xn motherboard had 1.16 but processor had 1.36 vcore for some reason ram is 1.024 thats ok i think should i lower my vcore in CPU for which number for 4ghz?

Mr1991
Posts: 151
Joined: 24 Nov 2019, 10:10

Re: What are the typical lag input delays on computers? + I measured mine

Post by Mr1991 » 05 Jul 2020, 09:10

Try HPET off in bios, dw about synced times.

Post Reply