bvle-voxels/src/voxel
Samuel Bouchet afb86446cd Fix VRAM leak: capacity-based BLAS/TLAS + deferred toping BLAS upload
Per-frame CreateRaytracingAccelerationStructure calls during F3 animation
caused VRAM explosion (especially toping BLAS at ~23M vertices). Now all
3 BLASes use capacity-based allocation with 25% headroom — only recreated
when vertex count exceeds capacity, otherwise just BuildRaytracingAS with
updated desc.vertex_count. TLAS only recreated when instance count changes.

Also adds deferred toping BLAS position upload via UpdateBuffer in Render()
(topingBLASDirty_ flag), enabling toping shadows to update during animation.

Split CLAUDE.md into CLAUDE.md + TROUBLESHOOTING.md for maintainability.
2026-03-30 21:37:39 +02:00
..
TopingSystem.cpp Phase 4.2+7: grass blade rework + soft RT shadows + toping BLAS optimization 2026-03-29 19:46:25 +02:00
TopingSystem.h Phase 5.2-5.3: CPU perf optimizations + GPU compute Surface Nets 2026-03-27 22:30:43 +01:00
VoxelMesher.cpp Phase 5.2-5.3: CPU perf optimizations + GPU compute Surface Nets 2026-03-27 22:30:43 +01:00
VoxelMesher.h Phase 5.1: Naive Surface Nets smooth rendering 2026-03-27 13:03:55 +01:00
VoxelRenderer.cpp Fix VRAM leak: capacity-based BLAS/TLAS + deferred toping BLAS upload 2026-03-30 21:37:39 +02:00
VoxelRenderer.h Fix VRAM leak: capacity-based BLAS/TLAS + deferred toping BLAS upload 2026-03-30 21:37:39 +02:00
VoxelTypes.h Phase 5.1: Naive Surface Nets smooth rendering 2026-03-27 13:03:55 +01:00
VoxelWorld.cpp Phase 5.2-5.3: CPU perf optimizations + GPU compute Surface Nets 2026-03-27 22:30:43 +01:00
VoxelWorld.h Phase 5.2-5.3: CPU perf optimizations + GPU compute Surface Nets 2026-03-27 22:30:43 +01:00