Structure builder: accesses stay near the root views, a size that cannot be one counts as none (VICTORY_BVH_BOUNDS=0: neither)

A structure that was written over names gigabytes; the builder's copy of it
(CopyForBVHUpdate, 63 a frame in the dorm, 13.3 of 84 ms in the timing run
light-13) went through all other structures' memory.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-25 12:57:50 -06:00
1 parent 72f7f13242
commit adf5706983
3 files changed
+38 -2

No files matched your search

+9
View File
@@ -188,6 +188,15 @@ pub fn builder_fences() -> bool {
*ON.get_or_init(|| std::env::var_os("VICTORY_BVH_FENCES").is_none_or(|v| v != "0"))
}
/// Whether the structure builder's accesses through its root views stay near
/// them, and a size in a structure's header that cannot be one counts as none
/// (`VICTORY_BVH_BOUNDS=0`: neither). Part of the translation: the shader
/// cache keys on it.
pub fn builder_bounds() -> bool {
static ON: std::sync::OnceLock<bool> = std::sync::OnceLock::new();
*ON.get_or_init(|| std::env::var_os("VICTORY_BVH_BOUNDS").is_none_or(|v| v != "0"))
}
/// The clean-up passes that run over a translated program before it is
/// written (`bitcode::opt`): a set of that module's pass bits. Every pass
/// is exact, so the switch is for telling a translator fault from a