[perf] FontAtlas dirty-rect uses one union bounding box (FontAtlas.cpp) #129
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Catcrafts/Crafter.Graphics#129
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?
Found by an adversarially-verified performance audit (confirmed real after a skeptic pass).
Location:
implementations/Crafter.Graphics-FontAtlas.cpp:137-163Severity: low · Effort: moderate · Category: memory
Problem
The dirty-rect uses a single union bounding box. Scattered new glyphs on different shelves produce a tall union box that uploads mostly-unchanged texels. Warmup-only (glyphs are write-once; steady state bails on
!dirty).Fix
Track a small per-shelf dirty-span list and issue multiple tight
UpdateRegioncopies. Low priority unless warmup stalls are observed.