Residency: VICTORY_RESIDENCY_PRIORITY=1 keeps render targets resident first on 8 GB cards (off by default) #3804
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3804"
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 RomanFama592 on 2026-11-30T07:37:51Z.
Related #946, #1918
What it changes
VICTORY_RESIDENCY_PRIORITY=1givesD3D12_RESIDENCY_PRIORITY_HIGHto committed render targets, depth and unordered-access memory on the card when they are made, and to the heaps aliased render targets are placed in (those exist withVICTORY_ALIAS_TARGETS=1). Off by default; nothing changes without the switch.Past its DXGI budget Windows moves some of the card's memory into the PC's, and with every priority normal it moved render targets too, which every frame reads and writes again. With the switch, textures (normal priority: blocks and copies of their own) go first and what shaders write stays. A hint only: nothing reads or writes differently, and a card under its budget pages nothing. It is opt-in because on a PC with little RAM what Windows pages goes to the PC's memory (see the laptop below).
How it was tested
VICTORY_RESIDENCY_PRIORITY=1VICTORY_RESIDENCY_HIGH), clock held, two runs each, rotated (automatic runs with victory-probe-mod, #2825): this switch 14.7 fps / p95 93 ms / GPU 57 ms,VICTORY_RESIDENCY_HIGHalone 13.0 / 103 / 70, both 14.3 / 94 / 61. On an 8 GB card past its budget the two are better not combined.cargo test -p victory-gpu --libon this head (current main): 920 passed;shader_cache::tests::every_switch_of_the_translator_is_in_the_keyfails on current main too, and two tests of other files (host::card_steps,watch) failed in the full run and pass alone. Clippy: no finding in the lines this changes.Checked for overlap
VICTORY_RESIDENCY_HIGH): maximum priority for card buffers and textures; measured against it above.🤖 Generated with Claude Code
https://claude.ai/code/session_01KLpN7AVE3kdGsfyVZos7rv