Page 1 of 7

This Is How I Fixed*(asterik!) My Own Input Lag [Update #3]

Posted: 28 Feb 2024, 05:42
by Foul Play
UPDATE #3:

Turns out that TPM's default blocked command list is my problem. Deleted the default blocked command list and now games and system feel like 240Hz and barely any hit-reg issues on Windows 11 Home.

Now I need to get gud again because for 7 years I've had laggy/input delay/hit-reg issues.

5600X
RTX A4000
32GB 3200MHz CL22
980 Pro 2TB
B350

i5 12500H
RTX 3050 Laptop
16GB
SN740 512GB.

GLHF.
------------------------

viewtopic.php?f=10&t=13123&start=50#p106450

*Changed title, sorry for the mislead.

Old 3:

Turns out Windows has a "Delay" built into the mouse + keyboard inputs and the cursor, I'm not joking***

***Maybe it isn't? I dunno. I'm still testing the "fix" though. Again this is just my findings. Take it as grain of salt.

Also stuttering came back and that turned out to be Krisp ML/AI feature built into Discord.

Turned off Krisp ML/AI Noise Suppression since it runs on the CPU and eats CPU cycles up (Even runs on my system in the background doing ML/AI stuff when not chatting.)

I'm testing this fix:

Code: Select all

Windows Registry Editor Version 5.00

;;Test fix by foulplay#0 at Discord.
;;Working so far but need more people 
;;to test it so I know this
;;isn't useless.

[HKEY_CURRENT_USER\Control Panel]

[HKEY_CURRENT_USER\Control Panel\Keyboard]
"KeyboardDelay"="0"

[HKEY_CURRENT_USER\Control Panel\Mouse]
"MouseDelay"="0"

[HKEY_CURRENT_USER\Control Panel\Cursors]
"CursorsDelay"="0"
GLHF.

PS if someone knows how to dump every key with in "Computer\HKEY_CURRENT_USER\Control Panel" please post as I wanna see if keys like "network", "internet" etc exist. Cheers.

----------------------------
Old 2:

Please run a backup and restore point first as this can break installs or make the system unusable.

*Edited to include my actual batch script, to remove none useful information, updated information to make it more clearer and understandable to read and more truthful and removed bonus batch script (will include in comments if asked.)

Manually setting cache didn't fix my input lag for long. However I were on to something with Windows.

I believe Windows Management Instrumentation (WMI) gets broken/bugged/etc after Windows, drivers, updates, applications and/or components etc installs.

I ran CMD commands first for testing before I made this batch file to run after boot to reset WMI.

Batch file:

Code: Select all

@echo off
::Stop WMI's service.
net stop winmgmt
::Reset WMI and the service will restart itself. 
winmgmt /resetrepository
::Timeout to make sure I know if it has worked.
timeout 10
Resetting WMI really fixed the problems I been having for 9 years since upgrading to Windows 10 from Windows 7 and Windows 10 to 11 and back with input delay, stuttering and lag.

Testing this on Windows 11 and 10 on my main system and low end laptops (i7 3rd Gen/Atom, AMD GPUs and Windows 10/11) and so far it works on everything I tested.

I hope this helps and GLHF.

System (main):
AOC 24G2
AMD Ryzen 7 5800X3D
MSI MPG X570S Carbon WiFi Max
32GB @ 3600 CL16-16-16-16-38
RTX A4000/RTX 3060 12GB
980 Pro NVMe 2TB SSD/256 GB Samsung SATA SSD.
Windows 11/10 Home/Pro/Pro for Workstations.


OLD:


For some reason, ether there's a bug with Windows' HAL or I found a way to brute-force Windows' to use the CPU Cache over the System RAM etc and but setting the Registry Key values in the attachment and following this Power-shell script fixed my input-lag: viewtopic.php?f=10&t=13044.

The Registry Keys are related to how Windows detects the amount of CPU Cache ether Reg Key Value or HAL.

I'm using a 5800X3D which has 100-ish Megabytes of Cache so this might not benefit lower CPU Cache amount and I have no other systems to test this on, I can't test it out.

That's all the tweaks I did on a fresh Windows 10 and 11 Home.
I've been playing GTA IV and CS2 and mouse is now 1-1 for me. I'm testing more games as I post this.

Maybe this will help people so GLHF.

Re: This Is How I Fixed My Input Lag

Posted: 01 Mar 2024, 23:55
by TooManyPixels
The thread that you linked to doesn’t mention the cache registry values - google isn’t telling me much either - can you tell us more about them?

Re: This Is How I Fixed My Input Lag

Posted: 02 Mar 2024, 17:17
by Foul Play
TooManyPixels wrote:
01 Mar 2024, 23:55
The thread that you linked to doesn’t mention the cache registry values - google isn’t telling me much either - can you tell us more about them?
I thought people could see the image attached to the post, my bad.

The Registry names are:

Code: Select all

FirstLevelDataCache

Code: Select all

SecondLevelDataCache

Code: Select all

ThirdLevelDataCache
in:

Code: Select all

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
All keys are set to in Hex:

Code: Select all

ffffffff

Re: This Is How I Fixed My Input Lag

Posted: 03 Mar 2024, 23:21
by Chief Blur Buster
Foul Play wrote:
02 Mar 2024, 17:17
I thought people could see the image attached to the post, my bad.
It shows up but it's not readable due to small text (image zooms down to small 1080p gaming monitor), unless I do the [URL=link][IMG]link[/IMG][/URL] trick.

Here is the clickable-zoomable version:

Image

I may have to modify the forum software to let people zoom attached images, especially on small screens and mobiles.

Re: This Is How I Fixed My Input Lag

Posted: 04 Mar 2024, 11:06
by evmadic
I have a 5800X3D and play competitive FPS, will test this tonight.

Unrelated: I just upgraded my stream PC's capture card from an HD60 Pro (capturing at 1080p 60fps via cloned desktop) to a 4K60 Pro (capturing at 1080p 240fps via cloned desktop). I upgraded because I wanted to stream at 120fps, I had no idea that my stream PC's capture card could effect input latency on my gaming PC... but after swapping out the old card I'm embarrassed to say that I've been playing with input lag for years.

To other dual PC streamers: Beware.

Re: This Is How I Fixed My Input Lag

Posted: 04 Mar 2024, 11:30
by evmadic
Foul Play wrote:
28 Feb 2024, 05:42
For some reason, ether there's a bug with Windows' HAL or I found a way to brute-force Windows' to use the CPU Cache over the System RAM etc and but setting the Registry Key values in the attachment and following this Power-shell script fixed my input-lag: viewtopic.php?f=10&t=13044.

The Registry Keys are related to how Windows detects the amount of CPU Cache ether Reg Key Value or HAL.

I'm using a 5800X3D which has 100-ish Megabytes of Cache so this might not benefit lower CPU Cache amount and I have no other systems to test this on, I can't test it out.

That's all the tweaks I did on a fresh Windows 10 and 11 Home.
I've been playing GTA IV and CS2 and mouse is now 1-1 for me. I'm testing more games as I post this.

Maybe this will help people so GLHF.

System:
5800X3D
X570S
32GB @ 3600 CL16-16-16-16-38
RTX A4000/RTX 3060 12GB
980 Pro NVMe 2TB SSD
Windows 11/10 Home
Do you have a way to measure CPU cache utilization? I have no doubt this made a difference in your system's performance, I'd just be interested to know why you conclude that your PC now prioritizes L3 cache using these settings.

Re: This Is How I Fixed My Input Lag

Posted: 04 Mar 2024, 12:30
by cursed-gamer
I have SecondLevelDataCache and LargeSystemCache only. What does it mean in that case?

Re: This Is How I Fixed My Input Lag

Posted: 04 Mar 2024, 17:06
by TooManyPixels
Foul Play wrote:
02 Mar 2024, 17:17
I thought people could see the image attached to the post, my bad.
What I meant was that I'd like to know how you found out that you should set these registry values in-particular, because they aren't mentioned in the forum thread you linked to.

Re: This Is How I Fixed My Input Lag

Posted: 05 Mar 2024, 06:52
by ilnazareno
I'm testing it in like 1 hour, give feedback, same CPU.

Re: This Is How I Fixed My Input Lag

Posted: 05 Mar 2024, 10:20
by RealTweaker
cursed-gamer wrote:
04 Mar 2024, 12:30
I have SecondLevelDataCache and LargeSystemCache only. What does it mean in that case?
Same for me, what should we change? Should we manually add FirstLevelDataCache and ThirdLevelDataCache values?