perf(text): avoid duplicate SDF generation in SdfAtlas::build_atlas #1070
Labels
No labels
Context: Bug
Context: Enhancements
Platform: Android
Platform: Linux
Platform: Web
Platform: Windows
Platform: iOS
Platform: macOS
Release
Target: CI
Target: CLI
Target: Dependency
Target: Engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
SakulFlee/Orbital#1070
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?
SdfAtlas::build_atlas currently calls FontData::get_glyph(), which rasterizes the glyph and generates an SDF, then calls font.rasterize() and generate_sdf() again for the atlas. The first SDF result is discarded.
Reuse the glyph/SDF data from the first pass instead of doing the work twice. This applies to every text label and is independent of the shared-atlas work.
Acceptance criteria: