Heap pass: looks on eight threads, its own looks leave the written set alone, a part forgotten after the looks, spans by parts #4876
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!4876
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4875"
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?
@Kenzim on GitHub · 2026-12-01 12:28 UTC · original
Kenzim:heap-pass→main· +220 −33 · 4 files · 1 commits · closed without mergingThe pass over the view heap's buffer views runs beside the recording, and the list that began it waits for it at its close. In the street scene that wait was 6.3-6.6 ms a frame (16,500 slots looked at a frame, 114,000 views kept in 4,700 host copies).
What changes (each on by default, each with a switch back):
VICTORY_VIEW_THREADSdefault 8 for the views' pool (was 4).VICTORY_HEAP_LOOK_QUIETon: the pass's own look at a slot no longer puts the slot back in the written set, so it is not looked at again a pass later for what the pass has just noted. Title writes and draws' looks are on other threads and still put it there.VICTORY_HEAP_FORGET_AFTERon: a pass forgets what it did not find of its part once it has looked (HeapRanges::forget_part_but). Before, it forgot the whole part first and put it back slot by slot. The same views are kept, slot for slot.VICTORY_HEAP_SPANS_WIDEon: the spans per host copy are found on four threads, each copy's views all by one thread (spans_of). Upstream'sheap_usednote (issue 4036) is kept and made as each copy's entry is first made.Measurements (RTX 3090, 32 threads, native 2560x1440, DLSS off, street scene; switches flipped inside one run with
VICTORY_AB), per frame:All together: looks 6.2 -> 4.2 ms, spans 1.35 -> 1.2 ms, wait at the list's close 6.3-6.6 -> 4.2 ms.
In this card-bound scene the frame time does not move. The gains are in the processor stages named above.
Not measured: scenes other than the street; about 1 ms of the spans stage is still unexplained.
To restore the old behaviour:
VICTORY_VIEW_THREADS=4,VICTORY_HEAP_LOOK_QUIET=0,VICTORY_HEAP_FORGET_AFTER=0,VICTORY_HEAP_SPANS_WIDE=0.Shader cache / translator key: not affected (no
victory-shaderchange).Tests:
draw::heap_range_tests(3 pass, one new). Clippy onvictory-gpuis clean apart from the five errors main already has (#4152). The rest ofdraw::aborts on the test PC (Windows 10, no Shader Model 6.6), as on main.@trustno1-coder on GitHub · 2026-12-01 18:29 UTC · original
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed