Root views per list state: VICTORY_ROOT_SAME binds a root SRV or CBV the list bound before at the same epoch and buffer count without looking it up and asking its refresh again #1722
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!1722
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1722"
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?
@101Leafy on GitHub · 2026-11-28 23:43 UTC · original
101Leafy:nv/root-same→main· +78 −21 · 13 files · 4 commits · merged 2026-11-29 08:16 UTCEvery root SRV or CBV a draw binds goes through root_view: it finds the buffer's host copy, works out the length, and asks for that range to be brought up to date. Most draws bind the same root views the draw before them bound, so the list does that same lookup and the same refresh request over and over.
With VICTORY_ROOT_SAME=1 the list state remembers each root view it bound at an aligned address, keyed by address and kind, together with the list epoch and the count of buffer table changes. If the same view comes again while both are unchanged, it gets the same GPU address back without a lookup, because the refresh it already asked for still covers it. Constant buffers that go to scratch or a placed constant are never remembered. The memory is cleared on every reset. Two diagnostics counters show the hits and the lookups.
It is off by default. With the switch unset, every root view is looked up as before.
265e1461d2to2fd6a418db@eleboucher on GitHub · 2026-11-29 04:18 UTC · original
PC result: RTX 4070 Ti SUPER 16 GB, Ryzen 7 9800X3D, 16 GB RAM, Windows 11, native 1440p,
VICTORY_BVH_BUILDER=1 VICTORY_ACTIVATE_RAYS=1, diagnostics build of main568c5e5dplus this PR and a few others, 10-minute run each, medians after 200 s.VICTORY_ROOT_SAME=1With the switch on, the counters stay at 0 for the whole run:
root views, per frame: 0 bound as the list bound them before, 0 looked up. SoState::root_viewis never reached in this title. Its root views seem to go throughroot_srv_table(thetabledbranch indraw.rs, just before theself.root_viewcall), so the cache has nothing to do here.