RTX 4070 Ti SUPER, Series X 1440p + 4x FG: a ~650 ms stall every second in a minigame (8-9 fps), texture room 1.1 GB over its line #3512

Open
opened 2026-11-30 00:16:53 +00:00 by Smoodie7 · 4 comments
Smoodie7 commented 2026-11-30 00:16:53 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Smoodie7 on 2026-11-30T00:16:53Z.


Build: main f889bb07 (v2026.11.29.02 hotfix), built from source (release, MSVC), with three small additions that don't touch this path: #1634 (dependency bumps), #1773 (water/light-probe shader proofs) and VICTORY_AMBIENT_ONCE=1 in F1. Full shader preload done just before (-Preload).
PC: RTX 4070 Ti SUPER 16 GB (driver 621.40), Ryzen 7 7700 (8C/16T), 32 GB, Windows 11 Pro 26300, 2560x1440 monitor.
Settings (F1): Series X, 2560x1440, DLSS Balanced, DLSS frame generation 4x through MFG Unlocker (VICTORY_FORCE_MFG_RTX40=1), ray tracing off.

What happens

Normal play is good: 23-26 rendered FPS (~38-43 ms a frame), about 4x that shown. During a minigame in the story, the rendered rate fell to 8-9 FPS and stayed there for about 10 minutes (log time 23:53 to 00:01 UTC), then 11-12 FPS for the next minutes.

The cause in the log is one ~650 ms frame every second, not a uniformly slow frame:

23:56:00 frame_times: frame times: 9 frames, median 48.7 ms, p95 645.9, p99 645.9, longest 645.9; 3 over 50 ms, 1 over 100 ms
23:56:01 frame_times: frame times: 8 frames, median 47.5 ms, p95 658.1, longest 658.1
23:56:02 frame_times: frame times: 9 frames, median 45.4 ms, p95 646.0, longest 646.0
23:56:00 host: 8.7 fps, 115.2 ms/frame (40.2 preparing: copies 21.1 ms 51.6 MB, textures 2.5 ms 36.4 MB; 1.6 on the GPU; 8.5 copying back 0.7 MB), 3957 draws/frame, dropped 360

The other frames take 45-48 ms, the same as normal play (preparation ~40 ms, the card ~1.6 ms). So the frame rate is lost to that once-a-second stall. Every stall also makes Streamline reset frame generation (dlfgPresent.cpp:1323[presentCommon] Frame rate over 100.00ms, reseting frame timer, 1,767 times in the session).

What changes when it starts

normal play (23:40-23:49) minigame (23:53-00:01)
rendered FPS (median) 23-26 8-9
texture room 10.4 GB against its 11.3 GB line, 1.4-1.7 GB free in blocks 12.3-12.4 GB against the same 11.3 GB line, 0.4-0.6 GB free
a first host texture was admitted just over the room line (black face fix) none 1,451 lines in 7 min
a texture already on the card is brought up to date although the card has no room for new ones rare 449 lines

The line is 74 % of the 15,293 MB budget. Frame generation 4x reserves its room (VICTORY_FRAMEGEN_ROOM_RESERVE=1), so on a 16 GB card the scene's textures stay above the line for the whole minigame. My guess, not proven: something tied to the textures over the line (eviction, re-admission or their uploads) runs about once a second and holds a frame for ~650 ms. It looks related to #1963 (the default texture line on 16 GB cards).

Log

minigame-slowdown-log.zip

Zipped; Windows user and PC names replaced with <user> / <host>, nothing else changed. The slow part is from 23:50 to 00:09 UTC.

Next things I can try if useful

  • The same spot with frame generation 2x, or with it off, to see whether the stall follows the frame-generation room reserve.
  • VICTORY_FRAMEGEN_ROOM_RESERVE=0, or a higher texture line, if there's a switch you'd like tested.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6686107429 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3512). Originally posted by [Smoodie7](https://github.com/Smoodie7) on 2026-11-30T00:16:53Z. --- **Build:** `main` `f889bb07` (v2026.11.29.02 hotfix), built from source (release, MSVC), with three small additions that don't touch this path: #1634 (dependency bumps), #1773 (water/light-probe shader proofs) and `VICTORY_AMBIENT_ONCE=1` in F1. Full shader preload done just before (`-Preload`). **PC:** RTX 4070 Ti SUPER 16 GB (driver 621.40), Ryzen 7 7700 (8C/16T), 32 GB, Windows 11 Pro 26300, 2560x1440 monitor. **Settings (F1):** Series X, 2560x1440, DLSS Balanced, DLSS frame generation 4x through MFG Unlocker (`VICTORY_FORCE_MFG_RTX40=1`), ray tracing off. ## What happens Normal play is good: 23-26 rendered FPS (~38-43 ms a frame), about 4x that shown. During a minigame in the story, the rendered rate fell to **8-9 FPS** and stayed there for about 10 minutes (log time 23:53 to 00:01 UTC), then **11-12 FPS** for the next minutes. The cause in the log is **one ~650 ms frame every second**, not a uniformly slow frame: ```text 23:56:00 frame_times: frame times: 9 frames, median 48.7 ms, p95 645.9, p99 645.9, longest 645.9; 3 over 50 ms, 1 over 100 ms 23:56:01 frame_times: frame times: 8 frames, median 47.5 ms, p95 658.1, longest 658.1 23:56:02 frame_times: frame times: 9 frames, median 45.4 ms, p95 646.0, longest 646.0 23:56:00 host: 8.7 fps, 115.2 ms/frame (40.2 preparing: copies 21.1 ms 51.6 MB, textures 2.5 ms 36.4 MB; 1.6 on the GPU; 8.5 copying back 0.7 MB), 3957 draws/frame, dropped 360 ``` The other frames take 45-48 ms, the same as normal play (preparation ~40 ms, the card ~1.6 ms). So the frame rate is lost to that once-a-second stall. Every stall also makes Streamline reset frame generation (`dlfgPresent.cpp:1323[presentCommon] Frame rate over 100.00ms, reseting frame timer`, 1,767 times in the session). ## What changes when it starts | | normal play (23:40-23:49) | minigame (23:53-00:01) | |---|---|---| | rendered FPS (median) | 23-26 | **8-9** | | texture room | 10.4 GB against its 11.3 GB line, 1.4-1.7 GB free in blocks | **12.3-12.4 GB against the same 11.3 GB line**, 0.4-0.6 GB free | | `a first host texture was admitted just over the room line (black face fix)` | none | 1,451 lines in 7 min | | `a texture already on the card is brought up to date although the card has no room for new ones` | rare | 449 lines | The line is 74 % of the 15,293 MB budget. Frame generation 4x reserves its room (`VICTORY_FRAMEGEN_ROOM_RESERVE=1`), so on a 16 GB card the scene's textures stay above the line for the whole minigame. My guess, not proven: something tied to the textures over the line (eviction, re-admission or their uploads) runs about once a second and holds a frame for ~650 ms. It looks related to #1963 (the default texture line on 16 GB cards). ## Log [minigame-slowdown-log.zip](https://github.com/user-attachments/files/35586850/minigame-slowdown-log.zip) Zipped; Windows user and PC names replaced with `<user>` / `<host>`, nothing else changed. The slow part is from `23:50` to `00:09` UTC. ## Next things I can try if useful - The same spot with frame generation 2x, or with it off, to see whether the stall follows the frame-generation room reserve. - `VICTORY_FRAMEGEN_ROOM_RESERVE=0`, or a higher texture line, if there's a switch you'd like tested.
Smoodie7 commented 2026-11-30 00:26:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Smoodie7 on 2026-11-30T00:26:23Z.


More from the same log, to narrow it down:

  • The long frame is the submitting thread's. In the slow part the title's threads wait 86.6 ms a frame at presents (19.6 ms in normal play), and the submitting thread works 67 ms a frame (43 ms in normal play). Card time stays ~1.6 ms and the submitting thread stood waiting for the card is 4.3 ms. So one submission a second takes ~600 ms of CPU on that thread, and the title waits for it at the present.
  • Not the process-memory walk. procmem takes 600-1000 ms, but it runs every 5 s on its own thread. Over the session's 3,258 one-second windows, long frames (>300 ms) line up with no walk in 761 cases and with a walk in only 200.
  • Levels on demand are not involved. No textures with levels on demand lines, so their once-a-second retry doesn't run.
  • Host memory pressure was on for the whole session (host memory pressure: limiting texture prefetch ... at world entry, never cleared; 360 MB physical free then). So the once-a-second sweep() runs its pressure branch (trim_idle, trim_spare_uploads, trim_spare_chunks, texback::trim_read_backs, send::trim) and then pool::room and the three let_go_idle, all on the submitting thread before a submission. In normal play that costs nothing visible. My best guess is that with the card over its texture line (the minigame), what the sweep lets go has to be made again at once, every second.

The runs I can do to confirm, same save and spot: VICTORY_IDLE_RECLAIM=0, then VICTORY_SWEEP=0 (diagnosis only), then frame generation 2x. I'll post the results. If it's the sweep, moving its frees off the submitting thread, or trickling them over frames, looks like the fix.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7265270134 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3512#issuecomment-7265270134). Originally posted by [Smoodie7](https://github.com/Smoodie7) on 2026-11-30T00:26:23Z. --- More from the same log, to narrow it down: - **The long frame is the submitting thread's.** In the slow part the title's threads wait **86.6 ms a frame at presents** (19.6 ms in normal play), and the submitting thread works **67 ms a frame** (43 ms in normal play). Card time stays ~1.6 ms and `the submitting thread stood waiting for the card` is 4.3 ms. So one submission a second takes ~600 ms of CPU on that thread, and the title waits for it at the present. - **Not the process-memory walk.** `procmem` takes 600-1000 ms, but it runs every 5 s on its own thread. Over the session's 3,258 one-second windows, long frames (>300 ms) line up with no walk in 761 cases and with a walk in only 200. - **Levels on demand are not involved.** No `textures with levels on demand` lines, so their once-a-second retry doesn't run. - **Host memory pressure was on for the whole session** (`host memory pressure: limiting texture prefetch ...` at world entry, never `cleared`; 360 MB physical free then). So the once-a-second `sweep()` runs its pressure branch (`trim_idle`, `trim_spare_uploads`, `trim_spare_chunks`, `texback::trim_read_backs`, `send::trim`) and then `pool::room` and the three `let_go_idle`, all on the submitting thread before a submission. In normal play that costs nothing visible. My best guess is that with the card over its texture line (the minigame), what the sweep lets go has to be made again at once, every second. The runs I can do to confirm, same save and spot: `VICTORY_IDLE_RECLAIM=0`, then `VICTORY_SWEEP=0` (diagnosis only), then frame generation 2x. I'll post the results. If it's the sweep, moving its frees off the submitting thread, or trickling them over frames, looks like the fix.
saltdam36 commented 2026-11-30 00:45:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by saltdam36 on 2026-11-30T00:45:46Z.


Same pattern on an RX 7800 XT 16 GB, Ryzen 7 7800X3D, 32 GB (Series S, FSR upscaler, no frame generation), and one switch removed it here: VICTORY_HOST_TEXTURE_SWEEP=0.

Build: 829188e9 + #1236 + #2764. Same save, on the ground in the open world, host memory pressure on from world entry in both runs.

default VICTORY_HOST_TEXTURE_SWEEP=0
seconds with a frame over 150 ms 40–54 of every 58 0–2 of every 58
longest frame in a typical second about 200 ms 70–95 ms
median frame 46–56 ms 42–56 ms
rendered fps 18–24 19–25

In the default run the layer uploaded about 37 GB of textures in ten minutes (50–100 MB/s, 5,000–10,000 waiting) with under 6 GB of title-filled textures on the card, so copies were being let go and made again continuously. The stall also stopped by itself when I took off in a plane.

One difference from your case: the card was under its budget here in both runs, so on this PC the one-second rule for unmapped copies under host memory pressure is enough to cause it, without the card being over its line. With the rule off the card sat at 9.6 GB of 15.4 GB after five minutes; I haven't checked a long session yet.

I can run VICTORY_IDLE_RECLAIM=0 or VICTORY_SWEEP=0 at the same spot if that helps.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7265555370 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3512#issuecomment-7265555370). Originally posted by [saltdam36](https://github.com/saltdam36) on 2026-11-30T00:45:46Z. --- Same pattern on an RX 7800 XT 16 GB, Ryzen 7 7800X3D, 32 GB (Series S, FSR upscaler, no frame generation), and one switch removed it here: `VICTORY_HOST_TEXTURE_SWEEP=0`. Build: `829188e9` + #1236 + #2764. Same save, on the ground in the open world, host memory pressure on from world entry in both runs. | | default | `VICTORY_HOST_TEXTURE_SWEEP=0` | |---|---|---| | seconds with a frame over 150 ms | 40–54 of every 58 | 0–2 of every 58 | | longest frame in a typical second | about 200 ms | 70–95 ms | | median frame | 46–56 ms | 42–56 ms | | rendered fps | 18–24 | 19–25 | In the default run the layer uploaded about 37 GB of textures in ten minutes (50–100 MB/s, 5,000–10,000 waiting) with under 6 GB of title-filled textures on the card, so copies were being let go and made again continuously. The stall also stopped by itself when I took off in a plane. One difference from your case: the card was under its budget here in both runs, so on this PC the one-second rule for unmapped copies under host memory pressure is enough to cause it, without the card being over its line. With the rule off the card sat at 9.6 GB of 15.4 GB after five minutes; I haven't checked a long session yet. I can run `VICTORY_IDLE_RECLAIM=0` or `VICTORY_SWEEP=0` at the same spot if that helps.
Smoodie7 commented 2026-11-30 03:43:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Smoodie7 on 2026-11-30T03:43:30Z.


Thanks @saltdam36, that measurement pinned it down. I opened #3681 for it: instead of turning the host rule off, a copy the host-pressure sweep let go and that is made again within 10 s is kept from that sweep for 2 minutes. Copies that do not come back are still freed, and the card's rule is unchanged. VICTORY_HOST_SWEEP_PROTECT=0 restores the old behaviour, and the diagnostics "host memory reclamation" line now counts the copies made again. I will add my own before/after from the same minigame there.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7268140822 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3512#issuecomment-7268140822). Originally posted by [Smoodie7](https://github.com/Smoodie7) on 2026-11-30T03:43:30Z. --- Thanks @saltdam36, that measurement pinned it down. I opened #3681 for it: instead of turning the host rule off, a copy the host-pressure sweep let go and that is made again within 10 s is kept from that sweep for 2 minutes. Copies that do not come back are still freed, and the card's rule is unchanged. `VICTORY_HOST_SWEEP_PROTECT=0` restores the old behaviour, and the diagnostics "host memory reclamation" line now counts the copies made again. I will add my own before/after from the same minigame there.
Smoodie7 commented 2026-11-30 05:32:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Smoodie7 on 2026-11-30T05:32:40Z.


Update: fixed in #3681, confirmed on my machines.

There were two causes, both in let_go_idle while the PC's memory is tight:

  1. The host-pressure rule let unmapped texture copies go after 1 s, and the title asked for them again: about 150 copies were remade a second during the minigame.
  2. Once the card filled up (11.7 → 13.3 GB here), the card's rule took over, but it still needed each copy's title memory wholly unmapped (#3272). It walked the whole list every second, about 60–85 ms on the submitting thread, and freed almost nothing.

#3681 keeps copies that come back soon after being let go, fixes that gate, and caps how long a look may hold the texture table (VICTORY_SWEEP_BUDGET_MS, 4 ms).

In the minigame, with the first two commits: 12.1 → 24.4 fps, and seconds with a frame over 300 ms went from 57 % → 2 %. The longest frame went from about 640 ms every second to a few frames of 130–170 ms. With all three commits, the stall did not come back on my second PC, including after the card filled up. Full table and log excerpts in https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3681. Until it is merged, VICTORY_HOST_TEXTURE_SWEEP=0 remains the workaround.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7269767859 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3512#issuecomment-7269767859). Originally posted by [Smoodie7](https://github.com/Smoodie7) on 2026-11-30T05:32:40Z. --- **Update: fixed in #3681, confirmed on my machines.** There were two causes, both in `let_go_idle` while the PC's memory is tight: 1. The host-pressure rule let unmapped texture copies go after 1 s, and the title asked for them again: about 150 copies were remade a second during the minigame. 2. Once the card filled up (11.7 → 13.3 GB here), the card's rule took over, but it still needed each copy's title memory wholly unmapped (#3272). It walked the whole list every second, about 60–85 ms on the submitting thread, and freed almost nothing. #3681 keeps copies that come back soon after being let go, fixes that gate, and caps how long a look may hold the texture table (`VICTORY_SWEEP_BUDGET_MS`, 4 ms). In the minigame, with the first two commits: **12.1 → 24.4 fps**, and seconds with a frame over 300 ms went from **57 % → 2 %**. The longest frame went from about 640 ms every second to a few frames of 130–170 ms. With all three commits, the stall did not come back on my second PC, including after the card filled up. Full table and log excerpts in https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3681. Until it is merged, `VICTORY_HOST_TEXTURE_SWEEP=0` remains the workaround.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA#3512
No description provided.