Residency: VICTORY_RESIDENCY_PRIORITY=1 keeps render targets resident first on 8 GB cards (off by default) #3804
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3804
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@RomanFama592 on GitHub · 2026-11-30 07:37 UTC · original
RomanFama592:feature/residency-priority→main· +135 −0 · 2 files · 1 commits · merged 2026-11-30 14:12 UTCRelated #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