Fps drops #3202
Labels
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida#3202
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@MilanPlayz on GitHub · 2026-12-02 18:41 UTC · original
What happens
Random FPS drops from 25–30 FPS to 2–9 FPS, even when shaders aren't compiling.
Commit
45dc41f95System
Windows 11 24H2, Intel Core i7-14700KF, NVIDIA GeForce RTX 5070 12 GB, 32 GB DDR5-6000, 2560x1440, NVIDIA driver 621.40
Where
runtime
Command and steps
I'm getting pretty bad FPS drops randomly while playing. The game usually runs at around 25–30 FPS, but sometimes it drops to 2–9 FPS for a second and then goes back to normal.
I've already precompiled all 83k pipelines, enabled Title Thread Priorities and Keep Card Awake, and set Shader Wait MS to 0. I'm also using DLSS Balanced with ray tracing disabled, but the drops still happen.
I managed to catch one of these drops with the F3 stats panel open. Recording went up to 367 ms while GPU busy was only 25 ms. There were no pending pipelines or shader waits either.
Does anyone know what's causing this or if there's a way to fix it without switching to the Series S profile?
Thanks!
Output
@ohshitwaddup on GitHub · 2026-12-03 16:01 UTC · original
Same drops on an RTX 5090 — GPU idle, CPU-side, and one frame's copies explode
Different GPU, same signature as #3202, so adding a datapoint. Ray tracing is off here too, so this is not the RT path.
System
d9b618fplus 24 community pull requests stacked locally (list on request). Series X profile, DLSS Balanced (LEONIDA_RENDER_SCALE=0.6, 2304x1296 to 3840x2160), DLSS frame generation 6x,LEONIDA_HW_RTunset.What was seen (from the play log's own
fps, X ms/framelines, in-world only, draws >= 1000)The steady state is fine (median 40-45 ms) and then a run or a stretch of a run sits at 2-7x that. Same as reported: it comes and goes.
The GPU is not the limit.
on the GPUis 0.0 ms at the median in every run (p90 0.0-0.9 ms).nvidia-smiduring play: 21,500 of 32,607 MiB, 21% utilization. The CPU side of the frame is the whole cost:preparing22-37 ms mediancopies8.5-12.0 ms for ~60 MB a framecopying back5.4-7.7 msWhat the slow frames differ in: the copy volume, not the pipeline
preparinghost pipelines 0 queued or being madethroughout, andwaiting 0- so not pipeline compilation, as the report says.WARN/ERRORcount in the log: 0.The present queue depth varies a lot run to run, which may be worth knowing since it is the same stalls that are felt:
(
queue/behind.rs: time from the title'sPresentto the relay'sJob::Present.)Hypotheses, labelled as such
MakeResidentclass from #2907 does not fit here: 21.5 of 32.6 GB used leaves ~11 GB, so textures are not being evicted for want of room.LEONIDA_HW_RT=1, p99 was 4767 ms with 10% of frames over 100 ms.LEONIDA_HW_RT_REFIT=0also turned every refit into a rebuild (181,916refit->rebuild, 49.8 s of BLAS prep in one session) - leaving refits on took p99 from 1190 ms to 68 ms on its own.Things that did not help here
LEONIDA_RELAY=0: frame times got worse (median 66 to 74 ms)LEONIDA_FRAMEGEN=2: frame generation stopped producing (neither an upscale nor a G-buffer pass has handed over depth and motion vectors in 600 presents), so it had to go back to 6LEONIDA_TEXTURE_NO_WAIT=0andLEONIDA_KEEP_SHOWN=2: fixed placeholder/flicker, did not change the stallsThings that did help, for anyone testing along
LEONIDA_HW_RToffLEONIDA_HW_RT_REFITleft on (the default)Happy to run anything specific: a switch, a build with instrumentation, or a tour at a named save, and report the log lines back.
@MoonEyes on GitHub · 2026-12-03 16:28 UTC · original
Triage Notes
What we've established so far:
mainor a shared root cause.Maintainer decision needed: