Deduplicate images in sprite atlas #4775
Labels
cross-platform 📺
Requires coordination with Mapbox GL Native (style specification, rendering tests, etc.)
feature 🍏
performance ⚡
Speed, stability, CPU usage, memory usage, or power usage
@kkaefer and I chatted about the possibility of only adding unique sprite images to the atlas, and allowing multiple sprite names to reference the same location.
Spritezero can already generate spritesheets with unique sprite images only, with multiple sprite names referencing the same location on the spritesheet. If a style uses this spritesheet layout option, can we use this data to do something similar in the atlas? Or would we analyze all the images to dedup regardless of whether the spritesheet is deduped?
/cc @mapbox/gl-core
The text was updated successfully, but these errors were encountered: