VICTORY_REHYDRATE_PREP=1: make the geometry of the builder's unpack calls ready first (opt-in) #33
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/33"
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?
Imported from eikkapine/jaxe. Originally posted by MJ26gaming on 2026-11-30T12:54:51Z.
What
VICTORY_REHYDRATE_PREP=1(off by default) — before the title's batchedRehydrateRaytracingAccelerationStructurecall unpacks packed (static) acceleration structures, the geometry each item reads (vertex and index buffers, transform) is made ready in by-address memory.The unpacking reads that geometry through pointers inside its build inputs, which the by-address memory never sees. A page without a host copy then reads 0 at a stage that runs once, so the structure is unpacked with zero or stale floats and stays wrong for the rest of the run. In arena dumps of eight launches the same static prop's structure was byte-identical in five and had every float zero (or ~1e-12) in the three slowest — this is one source of "some launches are slow".
LoadedImage::wrap_imports, new, generic); each item's geometry ranges go throughmemory::prepare_inputsbefore the original runs.=1on,=logonly counts pages that had no copy, unset/other: nothing is wrapped.Import hook after BackseatDrivers-Unbound/VIctory-AMD-RT. Port of MJ26gaming/victory-rdna4-linux-rt-MJ26
54437e26.Measured
RX 9070 XT (RDNA4), Linux / Proton + vkd3d-proton (RADV, Mesa 26.3.1). Series X path with RT, the cell,
scripts/play.ps1settings, 300 s runs, first 90 s left out, on/off alternated,present pacingnumbers:Within noise on frame rate here: it is a correctness fix for launches that unpack a structure from zeros, which a few runs don't reliably hit. In our tree (with
VICTORY_BVH_KEEP_REPLACED=1andVICTORY_MEMORY_PEEL=2) it measured 25.57 vs 22.07 fps averaged over four alternated pairs, though launch-to-launch variance still dominated there too. Off by default, so nothing changes unless asked. Picture checked in a capture run.Checks
cargo xwin build --release --locked -p victory(stable 1.100): no new warnings.victory-gpusuite not run, per CONTRIBUTING.🤖 Generated with Claude Code