citizenfx / fivem

The source code for the Cfx.re modification frameworks, such as FiveM, RedM and LibertyM, as well as FXServer.
https://cfx.re/
3.52k stars 2.07k forks source link

[Input] High mouse polling rates cause game stutter #1113

Open duk-37 opened 2 years ago

duk-37 commented 2 years ago

Most likely related to #1082

Issue created to track progress.

bought the dumb razer 8khz gimmick mouse to repro this so hopefully I can finally(!!!!) track this down

note: this mouse is also terrible, do not recommend

duk-37 commented 2 years ago

Failed attempt #1 (blind attempt at a fix as I did not have gimmick mouse before): moving to buffered input before running message loop

duk-37 commented 2 years ago

observation: window does not need to be focused for stutter to exist

WM_NCHITTEST maybe?

duk-37 commented 2 years ago

observation 2: ETW trace shows obscene amounts of time in kernel scanning message pump queue in...

image

🤔

blattersturm commented 2 years ago

DCE

lol desktop composition engine, old name for dwm during 2002-2003

Gingy92 commented 1 year ago

any updates? or has this been abandoned?

MrJDucky commented 1 year ago

Had this issue.

Turned polling rate on mouse from 1000 down to 250 and issue stops. Even 500 is too high.

Vlieker commented 11 months ago

I'm using the razer deathadder v3 (not wireless which is 1000hz max), which is 8000hz and it seems to be working perfectly now

gottfriedleibniz commented 8 months ago

Given how recent some comments have been made on this issue, I will be leaving it open for posterity.

Also reference: https://github.com/citizenfx/fivem/issues/1082#issuecomment-1606248578