Enabling high mouse polling rate causes extreme stutters/fps drops
What happened?
When I enable 4K Mouse Polling rate in FiveM, my FPS drops 90%+ (even worse in actual game)
The performance drop happens immediately after enabling the setting. Disabling 4K Pooling restores the previous performance.
Enabling 4K Pooling should have a reasonable performance impact, depending on the hardware and graphics settings.
System GPU: NVIDIA RTX 5080 CPU: AMD Ryzen 7 9800X3D RAM: 64 GB OS: Windows 11 Game: GTA V / FiveM FiveM build: V38329 (latest)
Expected result
High polling mouse rates should behave same as 1000hz or bellow
Reproduction steps
- Switch to lets say 4000hz
- Experience extreme fps drops and stutters (unplayable in game)
- Switch back to 1000hz for example
- Game behaves normal
Importancy
Unknown
Area(s)
FiveM
Specific version(s)
V38329 (latest)
Additional information
https://github.com/user-attachments/assets/8689c78c-75bf-4f68-b159-c4635620b8dc
i got this tho i think problem is the "NEW UPDATE"
4k polling rate has never been stable on FiveM afaik, 2k is the highest you should go
There's a fix for this in #4302. It reads all pending raw input in one go instead of one WM_INPUT message at a time, and also stops Windows from generating the legacy mouse messages for every report while the game has the mouse. That second part was most of the remaining cost.
Tested it with an 8000 Hz mouse, camera movement in the same spot:
- current client: 42-54 fps
- with #4302: ~490 fps
- 1000 Hz for comparison: 518-540 fps
Until it's merged, setting the mouse to 1000 or 2000 Hz is the workaround. If your mouse software supports per-app profiles you can do that just for FiveM and keep 4k/8k everywhere else.