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
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 101Leafy on 2026-11-28T23:43:27Z.
Every 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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by eleboucher on 2026-11-29T04:18:58Z.
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.