memory: VICTORY_BVH_EAGER places title memory in place ahead of the walks (RT: −80% zero-read pages, −4 ms) #25
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!25
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/25/head"
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?
@LOCKhart07 on GitHub · 2026-11-30 11:47 UTC · original
LOCKhart07:bvh-eager→main· +21 −0 · 1 files · 1 commits · closed without mergingWith ray tracing on, title memory that can go in place (
Memory::direct()) only goes in place on first touch, one cell at a time (put_in_place). So the frame that first touches a page reads 0: memory.rs calls theselatefaults, and the builder'sLeafRehydrationhits them too.VICTORY_BVH_EAGER=1(off by default) places them ahead of time:ready(),put_wholeoverum::SPACE, so every page that can go in place does at once;put_in_placesucceeds,put_wholeof the page's wholeSTRETCH(128 MiB) instead of just its cell, for memory committed later.Measured (RX 9070 XT 16 GB, 7800X3D, Fedora 44, Mesa 26.3.1 + mesa.patch, Wine 11.21 Staging;
cd811c1, Series X, 2560x1440, RT on; the same scripted 8-minute bench, ~8.5–9k draws):VICTORY_BVH_EAGER=1A 4-minute
VICTORY_FAULT_TAGS=1run:late1,018 → 0,there708 → 38,LeafRehydrationfaults 292 → 0. VRAM doesn't move because nothing is copied.What it doesn't fix: the distant shadow trace's
outside/topaddresses stay the same (details in #23).Not checked: whether
put_wholeover the whole space at the first walk causes a hitch on slower CPUs (I didn't see one here), or how it interacts with title memory released and committed again later (let_go). If you'd rather have it on by default, or only the per-stretch half, I can change it.🤖 Generated with Claude Code
Pull request closed