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
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Smoodie7 on 2026-11-30T00:16:53Z.
Build:
mainf889bb07(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) andVICTORY_AMBIENT_ONCE=1in 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:
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
a first host texture was admitted just over the room line (black face fix)a texture already on the card is brought up to date although the card has no room for new onesThe 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 from23:50to00:09UTC.Next things I can try if useful
VICTORY_FRAMEGEN_ROOM_RESERVE=0, or a higher texture line, if there's a switch you'd like tested.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 submitting thread stood waiting for the cardis 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.procmemtakes 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.textures with levels on demandlines, so their once-a-second retry doesn't run.host memory pressure: limiting texture prefetch ...at world entry, nevercleared; 360 MB physical free then). So the once-a-secondsweep()runs its pressure branch (trim_idle,trim_spare_uploads,trim_spare_chunks,texback::trim_read_backs,send::trim) and thenpool::roomand the threelet_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, thenVICTORY_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.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.VICTORY_HOST_TEXTURE_SWEEP=0In 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=0orVICTORY_SWEEP=0at the same spot if that helps.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=0restores 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.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_idlewhile the PC's memory is tight:#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=0remains the workaround.