[Bug] Reproducible frame-pacing spikes at high FPS with ~81 ms slow-frame cadence #32
hypervising
started this conversation in
[BUG] FiveM for GTAV Enhanced
Replies: 2 comments
0 replies
UpdateI spent the afternoon tracing this and the bottleneck appears to be inside GTA Enhanced's audio command queue rather than FiveM itself. Build I made a build-specific POC that removes those delays:
Code, notes and A/B video: |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary
FiveM reports and displays a high average frame rate, but I noticed motion does not feel consistently smooth.
PresentMon captures show frequent long displayed-frame intervals, even though the average is around 247 FPS uncapped and 198 FPS with a driver-level 200 FPS cap.
The 200 FPS cap noticeably improves frame pacing, but it does not fully resolve the issue. In repeated capped captures, slow frames still occur at a regular interval, with a median spacing of about 81 ms.
These slower frames appear to be caused on the application/CPU side rather than by the GPU. CPU busy time rises to around 10 ms, while active GPU work stays below roughly 2 ms.
Note: The first five seconds of each capture were excluded from the analysis to avoid including the focus transition after starting PresentMon.
Results
Uncapped
Despite averaging approximately 247 FPS, more than 8% of displayed intervals exceeded 8.33 ms, which is the duration of a frame at 120 FPS.
NVIDIA driver cap at 200 FPS
The cap improves frame pacing substantially, but periodic slow frames still remain.
In the capped capture, frames exceeding 8.33 ms had a median spacing of approximately 81 ms. This suggests recurring periodic work rather than isolated random spikes.
CPU and GPU timing
For frames with displayed intervals above 8.33 ms (120 FPS):
Issue type
Client
Repro rate
Always
Server build version
FXServer-early-access b90 win32
OS
Windows 11 25H2
CPU
AMD Ryzen 7 7800X3D
GPU
NVIDIA RTX 4090
RAM
32GB DDR5
Storage type
SSD NVMe
Connection type
Ethernet
ISP and bandwidth
No response
DxDiag
No response
Network graph
No response
Platform
Windows
OS version / distribution
No response
CPU
No response
RAM
No response
Using txAdmin?
Yes
Hosting provider
None
Machine type
None
/perf endpoint output
No response
DDoS protection
No response
ulimit -n value (Linux only)
No response
Docker Compose file (Docker only)
No response
Steps to Reproduce
GTA5_Enhanced.exeusing PresentMon for 60 seconds.Expected Behavior
At 247 fps, camera movement and world motion should appear consistently smooth.
Actual Behavior
FiveM Enhanced reports and displays approximately 247 FPS, but motion feels noticeably less smooth than regular FiveM at a similar frame rate on the same system.
Evidence
enhanced_uncapped.csv
enhanced_cap_200_retest.csv
Additional Context
Server had no extra scripts running besides txadmin.
All reactions