fivem icon indicating copy to clipboard operation
fivem copied to clipboard

Enabling high mouse polling rate causes extreme stutters/fps drops

Open nixaomg opened this issue 4 weeks ago • 3 comments

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

  1. Switch to lets say 4000hz
  2. Experience extreme fps drops and stutters (unplayable in game)
  3. Switch back to 1000hz for example
  4. 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

nixaomg avatar Nov 05 '26 15:11 nixaomg

i got this tho i think problem is the "NEW UPDATE"

JunTembMoon avatar Nov 08 '26 06:11 JunTembMoon

4k polling rate has never been stable on FiveM afaik, 2k is the highest you should go

pachxl avatar Nov 08 '26 08:11 pachxl

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.

OneEarJoe5 avatar Nov 11 '26 15:11 OneEarJoe5