Residency: VICTORY_WAIT_RESIDENT=textures waits for textures only (opt-in) #654
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/654"
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 bakdakonusuruz on 2026-11-28T02:46:31Z.
Why
On an RTX 4090 most of the residency waits are for plain buffers. In a 4-minute run on the
prologue, the layer waited for new memory 59,000 to 62,000 times (17.0 to 19.2 s in all,
the longest 0.94 to 0.96 s) and for mappings 44,800 to 47,400 times (4.4 to 5.8 s). The
comment on
wait_resident()places the device losses that the waits fixed in textureblocks, not in buffers.
The same split was measured on an RTX 3080 in Belobug/VIctory-Belobug-AMD#346 (212,000
waits, 60.8 s, down to about 1,000) and on an RTX 3090 there.
What
crates/victory-gpu/src/host.rsonly:wait_resident_buffers(): false forVICTORY_WAIT_RESIDENT=0and=textures.buffer_not_resident(),buffer_resident(),buffer_mapped(): the existing helpers,skipped when buffers are not waited for.
upload_buffer,shared_buffer_now,mapped_card_buffer,uav_buffer. Texture blocks (pool.rs) and textures(
resource.rs) are unchanged and still wait.Unset,
1and0behave as before.Measured
RTX 4090 24 GB (driver 621.40), i7-13700K, 32 GB RAM, Windows 11 26200. Release build,
Series X at 2560x1440, DLSS quality. Same route (a new game, the first 4 minutes of
gameplay), stopped by a script at 4 minutes. Two pairs, the same build in each pair.
VICTORY_WAIT_RESIDENT=texturesThe counts with the switch are ranges because the log line comes every 1,000th (new
memory) and 200th (mapping) wait.
Frame time: in the first pair the mean did not move (39 ms both, p95 52 to 48 ms, max 60
to 51 ms). The second pair does not compare on frame time (frame generation was on in one
run only). So this PR claims the waits and the long stalls, not frame rate.
Not seen: no new texture corruption with the switch. The late textures on some faces and
arms were in both runs.
Not done
texturesshould be the default on NVIDIA is themaintainer's call.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Exopus-0x65f7ad0 on 2026-11-28T18:22:17Z.
Same result on an 8 GB card, where the memory waits are the stutter you can feel in play.
Setup: RTX 5060 Ti 8 GB (DXGI budget ~7.0 GB), 16 GB RAM, Windows 11 26300.
v2026.11.28.03+ this PR (+ local commits). README launcher defaults: Series X, native 1440p, DLSS Quality, DLSS frame generation 2x. Prison opening: cutscene plus a scripted 90 s walk. The card is at its texture line most of the time (no roomin 80–90 % of the room lines).VICTORY_WAIT_RESIDENT=texturesMean fps barely moves (the card is GPU- and copy-bound here), but the long hitches go away. With frame generation those were what made it feel stuttery. No device loss in this run. That fits the
wait_resident()comment placing the 2026-11-25 losses in texture blocks, which still wait.+1 for making
texturesthe default once a few more people have run it. I've made it the default in my local build and will report back if a device loss shows up.