hle: stub XboxBvhBuilder build/copy/rehydrate when VICTORY_BVH_BUILDER is off #418
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/readmet3xt-lab--foxhound!418
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-418"
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?
@wellisrite on GitHub · 2026-12-02 04:39 UTC · original
wellisrite:fix/stub-bvh-builder-when-off→main· +142 −0 · 3 files · 72 commits · closed without mergingFixes #375
Problem
When
VICTORY_BVH_BUILDERis off (the default), the GPU side already skips ray-tracing BVH shaders, but the title still calls intoXboxBvhBuilder.dll(BuildRaytracingAccelerationStructureBatched2X, etc.) on the CPU. On a 12 GB RTX 3060 / 32 GB RAM system this caused:D3D12 XDXR Error: Failed to allocate upload buffer(0xe06d7363/0x80004005atXboxBvhBuilder.dll+0x210bc) during initial scene load.0xc0000005(write 0x0atXboxBvhBuilder.dll+0x1cef4) in heavy prestream scenes when the title's internal pools were nearly full.Change
victory_hle::modules::bvh_builder::Interpose(modeled afterfidelityfx::Interpose), chained inapps/victory/src/run.rs.VICTORY_BVH_BUILDER != 1(andVICTORY_BVH_STUB != 0), stubsBuildRaytracingAccelerationStructure,BuildRaytracingAccelerationStructureBatched2X,CopyRaytracingAccelerationStructure,CpuValidateResultX,RehydrateRaytracingAccelerationStructure*(S_OK), andValidateRehydrateAccelerationStructureBuildDesc(S_OK).GetRaytracingAccelerationStructurePrebuildInfo, andSet64BitMortonCodesbound to the title DLL.Verification
cargo test --locked -p victory-hle bvh_builder(1 passed; 0 failed)cargo clippy --locked -p victory-hle -p victory -- -D warnings(clean)cargo xtask policy(asset policy: 294 files ok)RTX 3060 12 GB,Ryzen 5 7500F,32 GBRAM): resolves both the Series X startup crash and the Series S heavy-scene crash.Pull request closed