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

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.
Foul Play
Posts: 10
Joined: 10 Oct 2023, 19:22

Re: This Is How I Fixed My Input Lag [Update]

Post by Foul Play » 19 May 2024, 15:50

Ragerlis wrote:
19 May 2024, 13:30
You want to stop the WMI before resetting it to avoid crashes and errors spam.

net stop winmgmt
Thank you as I forgot to include that in my original and edited post but now included my batch script which included it already but didn't post it.

Post is now updated again for people that posted in this thread.

giggio10
Posts: 35
Joined: 05 May 2023, 05:23

Re: This Is How I Fixed My Input Lag [Update]

Post by giggio10 » 27 May 2024, 09:12

Update, it was working like a charm, but since I did a clean windows install the command is not changing anything anymore.

Misha1337
Posts: 47
Joined: 09 Dec 2016, 10:30

Re: This Is How I Fixed My Input Lag [Update]

Post by Misha1337 » 03 Jun 2024, 04:38

Foul Play wrote:
28 Feb 2024, 05:42
UPDATE:

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.


How often do you reset the WMI ?

Foul Play
Posts: 10
Joined: 10 Oct 2023, 19:22

Re: This Is How I Fixed My Input Lag [Update #2]

Post by Foul Play » 21 Jun 2024, 16:32

Updated the original post.

Foul Play
Posts: 10
Joined: 10 Oct 2023, 19:22

Re: This Is How I Fixed My Input Lag [Update]

Post by Foul Play » 21 Jun 2024, 16:34

Misha1337 wrote:
03 Jun 2024, 04:38
How often do you reset the WMI ?
Used to be every boot but I'm testing more a permanent fix right now.

Hyote
Posts: 476
Joined: 09 Jan 2024, 18:08

Re: This Is How I Fixed My Input Lag [Update #2]

Post by Hyote » 22 Jun 2024, 06:39

It would be nice if you didn't make this sound like something mystical like built in delay. The KeyboardDelay serves as the repeat delay between keys pressed. However I did test those values and they seem to make some kind of a difference so I'm keeping them. But in my experience you have to do so much more to make the system feel responsive. If anyone wants to claim magical fixes from 1 or 2 reg keys or some hidden setting that solve a made up problem, they are on the wrong path.

agendarsky
Posts: 89
Joined: 08 Jan 2021, 16:32

Re: This Is How I Fixed My Input Lag [Update #2]

Post by agendarsky » 22 Jun 2024, 10:28

This problem simply doesnt exist on agp cards, i've just tried two old pc's that my friend's that still have, both of them have agp cards with windows 7 a i've tested 1.6 and q3 and its simply not broken. Forget about mouse input lag, the game speed and hit registry was just insane for such a old computers, which just proove my point that this problem is rooted in pci-express and how resources are allocated and manipulated, agp was deticated slot for gpu and didnt share bandwith any other peripherals . Nvidia drivers are finally opensource now and there are some interesting finding, i dont want to promise anything i just simply want you to give it a try, unfornutanely only for nvidia users :

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000

All values are case sensitive


RmFbsrPagedDMA 1- hex
RmForceDisableIomapWC - 1hex <--- disable write combining, this settings made my os wont boot if x2apic is enabled in bios
UseGpuTimer -1 hex
RMOPSB - 2aa2 hex <-- another power saving
RmPowerFeature 40 hex - changing clock gating, not sure about correct value , watch savitara'x latest video about nvidia hidden settings

but theese are most impactfull for me:

RmCeUseGen4Mapping - 1 hex
or
UseUncachedPCIMappings - 1hex

source:
https://github.com/NVIDIA/open-gpu-kern ... registry.h

https://github.com/NVIDIA/open-gpu-kern ... nvoc.h#L45

https://github.com/NVIDIA/open-gpu-kern ... nvoc.h#L45

https://github.com/djdallmann/GamingPCS ... 8.txt#L233

Also i want to say that i've been experiencing this problem since 2011 , at that time i had pentium 4 , intel desktop board (d875pbz) and old agp gt 7600 gs i guess it was 512 mb version and i was literally playing only half-life and cs , not interested in any other games, that setup was enough for 5v5 but had some serious fps drops when enemies was pushing with smokes and also ventrilo took some resources so i wanted to do little oc which resulted in bricked motherboard :lol: and because i didnt had money to new setup from scratch i kept my cpu , psu and case and bought some asrock motherboard that was still using pentium 4 socket but i also had to upgrade to ddr2 and pci-e gpu and it was gt440 1gb, games was never same since that time. Maybe this is just another time me being delusional but iam conviced this problem is rooted in pci-express resources allocation.

Foul Play
Posts: 10
Joined: 10 Oct 2023, 19:22

Re: This Is How I Fixing* My Input Lag [Update #2]

Post by Foul Play » 22 Jun 2024, 14:07

agendarsky wrote:
22 Jun 2024, 10:28
UseUncachedPCIMappings - 1hex
UseGpuTimer - 1hex
Them and:

Code: Select all

AllowUnspecifiedHSync - 1hex
AllowUnspecifiedVSync - 1hex
AllowUnspecifiedPixelRate - 1hex
EnableCoproc - 1hex ****
EnableCoprocPowerControl - 0hex ****
RMGpuCacheEnable - 1hex
UnifySystemApertureAsCached - 1hex

****I set this because I have

Code: Select all

HKEY_LOCAL_MACHINE\SOFTWARE\NVIDIA Corporation\Global\CoProcManager
so I trying this to see if it is enabled or gets enabled. I find this + HAGS enabled in Windows helps as well.

helped but take this a grain of salt.

Cheers bud!

JimCarry
Posts: 586
Joined: 24 May 2024, 20:01
Location: csgo

Re: This Is How I Fixing* My Input Lag [Update #2]

Post by JimCarry » 22 Jun 2024, 18:06

amd fix please ?

Hyote
Posts: 476
Joined: 09 Jan 2024, 18:08

Re: This Is How I Fixing* My Input Lag [Update #2]

Post by Hyote » 22 Jun 2024, 18:27

JimCarry wrote:
22 Jun 2024, 18:06
amd fix please ?
download Radeon Software Slimmer
extract a freshly downloaded AMD driver

Packages (they all start with AMD): Display Driver, HDMI Audio Driver, High Definition Audio Controller, Settings

Scheduled Tasks: none

Display Driver Components: High Definition Audio Bus, AMD-OpenCL User Mode Driver, AMD PCI Bridge Device Extension, AMD Windows Support Components

Modify installer and install as minimal or driver.
Disable hd audio controller, crash defender and generic software component in device manager.
Disable the 2 entries in services and Noise Suppression in startup.
Rename every atieclxx.exe to old with NSudo or something else that gives you permission.
Disable HDCP support in the AMD control panel.

Use GPU-Z to dump your VBIOS and load it in MorePowerTool. Follow the settings on calypto.us.
Undervolt and OC your card in MoreClockTool or Afterburner. Uncheck Zero-RPM Enabled.
Use either RadeonDXConfigurator or look up the registry keys to change DX9 and DX11 from DXNavi to regular.
Check my github for the AMD regedit tweaks, it is in tweakcollection.txt.
github.com/Hyyote

Post Reply