Fps drops #3202

Open
leonida/mandy
opened 2026-12-02 18:41:43 +00:00 by MilanPlayz · 2 comments
MilanPlayz commented 2026-12-02 18:41:43 +00:00

What happens

Random FPS drops from 25–30 FPS to 2–9 FPS, even when shaders aren't compiling.

Commit

45dc41f95

System

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!

09859480-a1ef-4525-a128-d1b4058632e0

Output

There's no specific error message or crash, but I managed to capture a major FPS drop with the F3 stats panel:

- FPS: 2.5
- Frame time: 395.2 ms
- Recording: 367 ms
- GPU busy: 25 ms
- Waits for GPU: 0 ms
- Pipes pending: 0
- Waits pipes: 0 ms
- VRAM: 8.6/10.3 GB
- Shared GPU memory: 4.1 GB
- Commit left: 1.5 GB

I've attached a screenshot of the stats during the stutter.
### What happens Random FPS drops from 25–30 FPS to 2–9 FPS, even when shaders aren't compiling. ### Commit 45dc41f95 ### System 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! <img width="254" height="140" alt="09859480-a1ef-4525-a128-d1b4058632e0" src="https://github.com/user-attachments/assets/8569b9a9-90ca-40ac-9dbd-6ba51a60877b" /> ### Output ```text There's no specific error message or crash, but I managed to capture a major FPS drop with the F3 stats panel: - FPS: 2.5 - Frame time: 395.2 ms - Recording: 367 ms - GPU busy: 25 ms - Waits for GPU: 0 ms - Pipes pending: 0 - Waits pipes: 0 ms - VRAM: 8.6/10.3 GB - Shared GPU memory: 4.1 GB - Commit left: 1.5 GB I've attached a screenshot of the stats during the stutter. ```
ohshitwaddup commented 2026-12-03 16:01:28 +00:00

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

  • AMD Ryzen 9 9950X3D, 126 GB RAM
  • NVIDIA GeForce RTX 5090 32 GB, driver 617.42
  • Windows 11 Pro build 26300
  • Commit: d9b618f plus 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_RT unset.

What was seen (from the play log's own fps, X ms/frame lines, in-world only, draws >= 1000)

run samples median p90 p99 max frames >100 ms
a 152 44.7 ms (22.4 fps) 55.2 71.6 153.9 1
b 63 40.6 ms (24.6 fps) 80.0 236.4 236.4 2
c 38 52.0 ms (19.2 fps) 96.8 — 430.5 2
d 66 71.7 ms (13.9 fps) 85.8 329.8 329.8 1

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 GPU is 0.0 ms at the median in every run (p90 0.0-0.9 ms). nvidia-smi during play: 21,500 of 32,607 MiB, 21% utilization. The CPU side of the frame is the whole cost:

  • preparing 22-37 ms median
  • copies 8.5-12.0 ms for ~60 MB a frame
  • copying back 5.4-7.7 ms

What the slow frames differ in: the copy volume, not the pipeline

steady frame stall frame
frame 36.6-44.9 ms 236-431 ms
copies ~60 MB 199.6 MB, 258.7 MB, 466.0 MB (max per run)
preparing 22 ms up to 188.6 ms (with 91.1 ms of it copies / 699.2 MB)

host pipelines 0 queued or being made throughout, and waiting 0 - so not pipeline compilation, as the report says. WARN/ERROR count 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:

  • 18.0 ms average in the best run
  • 49.0 ms and 56.1 ms in two others

(queue/behind.rs: time from the title's Present to the relay's Job::Present.)

Hypotheses, labelled as such

  1. A frame that has to flush 200-470 MB of title memory is the slow one. If the copy is proportional to what changed, something occasionally marks a very large range changed at once (a level stream, or a large buffer write caught by the watch). I have not found what marks it.
  2. The MakeResident class 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.
  3. Hardware ray tracing makes the same tail far worse and is a separate problem: with LEONIDA_HW_RT=1, p99 was 4767 ms with 10% of frames over 100 ms. LEONIDA_HW_RT_REFIT=0 also turned every refit into a rebuild (181,916 refit->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 6
  • LEONIDA_TEXTURE_NO_WAIT=0 and LEONIDA_KEEP_SHOWN=2: fixed placeholder/flicker, did not change the stalls

Things that did help, for anyone testing along

  • LEONIDA_HW_RT off
  • LEONIDA_HW_RT_REFIT left on (the default)
  • the five texture/memory pull requests (#3290, #3291, #3296, #3201, #3153) applied together made it worse for me (median 51.7 ms against 35.8 ms without them), so I reverted them - possibly worth a second datapoint from someone else

Happy to run anything specific: a switch, a build with instrumentation, or a tour at a named save, and report the log lines back.

## 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** - AMD Ryzen 9 9950X3D, 126 GB RAM - NVIDIA GeForce RTX 5090 32 GB, driver 617.42 - Windows 11 Pro build 26300 - Commit: `d9b618f` plus 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_RT` unset. **What was seen (from the play log's own `fps, X ms/frame` lines, in-world only, draws >= 1000)** | run | samples | median | p90 | p99 | max | frames >100 ms | |---|---|---|---|---|---|---| | a | 152 | 44.7 ms (22.4 fps) | 55.2 | 71.6 | 153.9 | 1 | | b | 63 | 40.6 ms (24.6 fps) | 80.0 | 236.4 | 236.4 | 2 | | c | 38 | 52.0 ms (19.2 fps) | 96.8 | — | 430.5 | 2 | | d | 66 | 71.7 ms (13.9 fps) | 85.8 | 329.8 | 329.8 | 1 | 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 GPU` is 0.0 ms at the median in every run (p90 0.0-0.9 ms). `nvidia-smi` during play: 21,500 of 32,607 MiB, 21% utilization. The CPU side of the frame is the whole cost: - `preparing` 22-37 ms median - `copies` 8.5-12.0 ms for ~60 MB a frame - `copying back` 5.4-7.7 ms **What the slow frames differ in: the copy volume, not the pipeline** | | steady frame | stall frame | |---|---|---| | frame | 36.6-44.9 ms | 236-431 ms | | copies | ~60 MB | **199.6 MB, 258.7 MB, 466.0 MB** (max per run) | | `preparing` | 22 ms | up to 188.6 ms (with 91.1 ms of it copies / 699.2 MB) | `host pipelines 0 queued or being made` throughout, and `waiting 0` - so not pipeline compilation, as the report says. `WARN`/`ERROR` count 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: - 18.0 ms average in the best run - 49.0 ms and 56.1 ms in two others (`queue/behind.rs`: time from the title's `Present` to the relay's `Job::Present`.) **Hypotheses, labelled as such** 1. A frame that has to flush 200-470 MB of title memory is the slow one. If the copy is proportional to what changed, something occasionally marks a very large range changed at once (a level stream, or a large buffer write caught by the watch). I have not found what marks it. 2. The `MakeResident` class 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. 3. Hardware ray tracing makes the same tail far worse and is a separate problem: with `LEONIDA_HW_RT=1`, p99 was 4767 ms with 10% of frames over 100 ms. `LEONIDA_HW_RT_REFIT=0` also turned every refit into a rebuild (181,916 `refit->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 6 - `LEONIDA_TEXTURE_NO_WAIT=0` and `LEONIDA_KEEP_SHOWN=2`: fixed placeholder/flicker, did not change the stalls **Things that did help, for anyone testing along** - `LEONIDA_HW_RT` off - `LEONIDA_HW_RT_REFIT` left on (the default) - the five texture/memory pull requests (#3290, #3291, #3296, #3201, #3153) applied together made it worse for me (median 51.7 ms against 35.8 ms without them), so I reverted them - possibly worth a second datapoint from someone else 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 commented 2026-12-03 16:28:43 +00:00

This was generated by AI during triage.

Triage Notes

What we've established so far:

  • The original RTX 5070 report captured a 395 ms frame with 367 ms of CPU-side recording, 25 ms GPU time, and no pipeline wait.
  • A follow-up on an RTX 5090 reports similar intermittent stalls with high CPU-side copy volume and no queued pipelines, but that run used 24 locally stacked community PRs, so it does not establish the same behavior on current main or a shared root cause.
  • The follow-up author is willing to run a targeted test.

Maintainer decision needed:

  • Decide whether to request a clean-current-main reproduction/instrumented run and whether to track the copy-volume and hardware-RT tails separately. The current evidence points away from pipeline compilation for the captured stalls but does not yet isolate the cause.
> *This was generated by AI during triage.* ## Triage Notes **What we've established so far:** - The original RTX 5070 report captured a 395 ms frame with 367 ms of CPU-side recording, 25 ms GPU time, and no pipeline wait. - A follow-up on an RTX 5090 reports similar intermittent stalls with high CPU-side copy volume and no queued pipelines, but that run used 24 locally stacked community PRs, so it does not establish the same behavior on current `main` or a shared root cause. - The follow-up author is willing to run a targeted test. **Maintainer decision needed:** - Decide whether to request a clean-current-main reproduction/instrumented run and whether to track the copy-volume and hardware-RT tails separately. The current evidence points away from pipeline compilation for the captured stalls but does not yet isolate the cause.
Sign in to join this conversation.
No assignees
No project
No milestone
Dependencies

No dependencies set

Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
leonida/mandy#3202
No description provided.