perf(billboard): share one SDF atlas across text labels #1098
No reviewers
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
SakulFlee/Orbital!1098
Loading…
Reference in a new issue
No description provided.
Delete branch "sakulflee/shared-label-atlas"
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?
Every world-space text billboard built and uploaded its own 1024x1024
SDF atlas, even when labels used the same font and repeated glyphs.
Add SharedTextAtlas, which builds one atlas from the union of a label
group's characters, and let Text reuse it for rebuilds. Materials are
cached per text style inside the shared atlas, so labels with identical
styling share one realized texture as well.
The all-in-one example now builds a single atlas for all eight room
labels instead of one atlas per label (twice: once at spawn and once in
the first-frame text rebuild).
ba77daf3d306a45bc02106a45bc02100ff36898cSmart test results
Result: PASS
Scope: orbital_billboard, orbital_text
Reason: directly changed crates
Elapsed: 3m 38s
Workflow run
Overall: 27 tests, 26 passed, 0 failed, 1 skipped
Nextest: 26 tests, 26 passed, 0 failed, 0 skipped
Doctests: 1 tests, 0 passed, 0 failed, 1 skipped
Outcome charts are split between nextest and doctests. The timing chart covers nextest only.