VICTORY_BVH_SIZE_COPY: the title's copies of the builder's compacted sizes are done behind their list #32
No reviewers
Labels
No labels
accessibility
bug
crash
documentation
duplicate
enhancement
good first issue
graphics
help wanted
invalid
needs logs
performance
question
rdna2
rdna3
rdna4
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/eikkapine--victory-amd!32
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-32"
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?
@MJ26gaming on GitHub · 2026-11-30 12:54 UTC · original
MJ26gaming:pr/bvh-size-copy→main· +140 −2 · 5 files · 1 commits · merged 2026-11-30 16:18 UTCWhat
VICTORY_BVH_SIZE_COPY— with the BVH builder on (VICTORY_BVH_BUILDER=1), the title's small buffer copies out of the builder's compacted-size slots are done behind their list (after the size program has run) instead of at submission.The title copies each new structure's compacted size out of the slot the builder's size program stores in, with a small copy in the same list, and later allocates the compacted destination from that value. Done at submission, the copy read the slot before the GPU wrote it — an older structure's size — so compaction copies overran their room and wrote over the next structure (broken structures, frame-time climb).
VICTORY_BVH_SIZE_COPY=0turns it off. Without the builder nothing changes.bvh size copylog line counts the copies moved.Port of VIctory-NVIDIA
1788f11, by way of MJ26gaming/victory-rdna4-linux-rt-MJ26 (f6e40733,0f116d96).Measured
RX 9070 XT (RDNA4), Linux / Proton + vkd3d-proton (RADV, Mesa 26.3.1), Ryzen 7 7700, 32 GB. Series X path with RT, same save and place (the cell), the launcher's settings from
scripts/play.ps1(VICTORY_BVH_BUILDER=1etc.), 300 s runs, first 90 s left out, on/off alternated. Numbers from thepresent pacinglog lines.Frames over 100 ms drop by roughly 40–50 % in both pairs; median fps up in the second pair. Picture checked in a capture run (cell scene correct).
Checks
cargo xwin build --release --locked -p victory(stable 1.100; 1.98.1 not installed here): no new warnings (only the existingfetch_updatedeprecations).size_copies_go_with_the_builder_unless_switched_off,by_address_sources_are_the_shaders_only_when_asked,a_copy_behind_the_list_takes_its_source) and the existinghost::place/queue::testspass under Wine. Fullvictory-gpusuite not run, per CONTRIBUTING.🤖 Generated with Claude Code