Memory: track private BVH arena writes #364
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!364
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-364"
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?
@Sr-0w on GitHub · 2026-11-26 19:04 UTC · original
agent2/bvh-arena-writes→main· +128 −20 · 4 files · 1 commits · closed without mergingAdd the opt-in switch
VICTORY_PORT_BVH_ARENA_WRITES=1. The runtime records its CPU writes into private BVH arenas in the existing write journal. It records which 4 KiB pieces changed within each 64 KiB page, then uses those notes when preparing a submission. With 26 arenas of 64 MiB each, this removes repeated Windows write-watch queries for those allocations.Both arena population paths record writes. The existing shadow refresh and upload ordering still apply. The switch is off by default and applies only to private arenas. The directory, title buffers, and source title pages retain the existing write-watch path.
Measurements
RX 7800 XT 16 GB, Series X, ray tracing enabled, five renderer ports, warm cache and steady boat scene in a retail game. Values cover the last 90 seconds of each run.
Arena tracking alone removes 104 write-watch calls and saves 10.1 ms of CPU preparation per frame. In that run, the submitting thread hit the CBV upload-fill dependency once per frame, up from 0.2 times per frame, and flight settle time increased. The combined run includes a separate CBV-in-place patch and is 12.8 ms/frame faster than the reference. Its frame-time improvement measures both changes together.
The coordinator checked contact sheets from the arena-only and combined runs. The boat scene looked unchanged, with ray tracing and BVH-built geometry intact.
Verification
cargo build --locked --profile diag -p victory --features diagnostics.VICTORY_PAGE_PARTS=0andVICTORY_PORT_JOURNAL=1.cargo clippy --locked -p victory-gpu --features diagnostics --libcompleted with the existingunnecessary_mut_passedwarning in the unrelated guard-opening call.🤖 Generated with Claude Code
Pull request closed