Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

SpriteAtlas adds all images to the texture #9019

@jfirebaugh

Description

@jfirebaugh

Prior to 5cdf838, SpriteAtlas added images to the texture atlas on an as-needed basis, as individual images were requested via SpriteAtlas::getIcon. Now it preemptively adds all images to the texture when buildIconMap is called.

Not sure how important the old behavior was. Though, at the very least, buildIconMap should handle the case where the BinPack overflows and getIcon returns a null optional.

cc @ChrisLoer

Metadata

Metadata

Assignees

Labels

CoreThe cross-platform C++ core, aka mbglperformanceSpeed, stability, CPU usage, memory usage, or power usage

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions