[perf] TLAS instance/metadata buffers reallocated on instance-count change #64
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Catcrafts/Crafter.Graphics#64
Loading…
Add table
Add a link
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?
Subsystem: RenderingElement3D / RT
Location:
implementations/Crafter.Graphics-RenderingElement3D.cpp:90-97, 161-162Impact: Low · Effort: Medium · Not hot path (gated behind topologyChanged)
Problem
TLAS instance/metadata buffers are reallocated on instance-count change. Gated behind
topologyChanged; all shipped examples have stable instance counts after init, so steady state takes the cheap refit path.Proposed fix
High-water-mark growth (removes only 2 of 4 reallocations).
Correctness caveat
Does not eliminate the AS rebuild that dominates. The whole frame is also drained by the wait-idle today, so no current UAF — but a frame-in-flight renderer would need fence-tracked lifetimes.