[perf][LOW] Compressed-asset Update re-Resizes both staging buffers every call #71
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Catcrafts/Crafter.Graphics#71
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: Image pipeline (compressed assets)
Location:
interfaces/Crafter.Graphics-ImageVulkan.cppm:186-205Impact: Low · Effort: Small · Not hot path (each caller invokes once at setup)
Problem
Compressed-asset
Updatere-Resizes both staging buffers every call. Every shipped caller invokes it once at setup; the streaming scenario is hypothetical.Proposed fix
Grow-only reuse.
Correctness caveat
Must keep the
MEMORY_DECOMPRESSIONflag gated onDevice::memoryDecompressionSupported, and does not by itself make streaming safe (still needs fence/double-buffer).