Experimental native ray tracing, BVH compaction and Ray Regeneration research #8
Labels
No labels
accessibility
area: compatibility
area: docs
area: hygiene
area: infra
area: memory
area: ray-tracing
area: rendering
area: shaders
area: submission
area: textures
bug
ci
dependencies
difficulty: advanced systems
difficulty: intermediate
documentation
duplicate
enhancement
experimental
good first issue
help wanted
invalid
known issue
performance
priority: P0
priority: P1
priority: P2
proposal
question
rendering
research
testing
triage
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/VictoryX-dev--VictoryX#8
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@VictoryX-dev on GitHub · 2026-12-03 02:57 UTC · original
Problem
Native ray tracing (
VICTORY_BVH_BUILDER=1) and AMD FidelityFX Ray Regeneration (VICTORY_FSR_RR) are experimental, off by default and excluded from the current performance baseline. Several correctness, scheduling and memory-efficiency challenges remain before ray tracing can be considered stable.Known Evidence
VICTORY_ARENA_ONE_SIDE=1removes duplicate CPU backing for 64 MiB ray-tracing arenas (previously ~1,472 MB of arena backing duplicated alongside ~1,425 MB of RT structures in an internal diagnostic run).VICTORY_SIZE_COPY_LATE=1defers CPU copies out of BVH compacted-size slots until GPU completion, reducing early slot reads (9,646 → 0) and undersized compaction copies (148 → 0) in an internal RT diagnostic session; kept off by default pending visual verification of reflections.VICTORY_FSR_RR=1currently keeps the title's own denoiser active because depth/stencil input bindings require verification (VICTORY_FSR_RR=unverifiedallows testing the denoiser path alongsideVICTORY_BVH_BUILDER=1andVICTORY_FSR).victory.exe dxr-capabilities,victory.exe dxr-smoke, andvictory.exe dxr-smoke --compact(wired intoscripts/run-regression.ps1 -NativeDxr).Approaches That Did Not Work
VICTORY_BVH_WAIT_MS, default10000).VICTORY_BVH_TRACEandVICTORY_BVH_CALL_CAPTURE=2).Relevant Source Modules
runtime/crates/victory-gpu/src/raygen.rsruntime/crates/victory-gpu/src/memory.rsruntime/crates/victory-gpu/src/rr_observe.rsruntime/crates/victory-gpu/src/ambient.rsruntime/crates/victory-hle/src/bvh_capture.rsruntime/crates/victory-shader/src/emit/mod.rsExpected Contribution
VICTORY_BVH_TRACE=1,VICTORY_BVH_CALL_CAPTURE=2) withVICTORY_SIZE_COPY_LATE=1andVICTORY_ARENA_ONE_SIDE=1.VICTORY_RR_TRACE=1,VICTORY_AMBIENT_DEPTH_PLANE=1,VICTORY_FSR_RR=unverified) and expand synthetic DXR compaction/denoiser tests.Acceptance Criteria
scripts/run-regression.ps1 -NativeDxrpasses cleanly on DXR-capable hardware.ROOMorSLOT READ EARLYanomalies underVICTORY_BVH_TRACE=1in synthetic and gameplay RT tests.VICTORY_BVH_BUILDERis off.