Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: Optimize
TexturePackerSprite
when sprites do not need to be r…
…otated (#3236) TexturePackerSprite creates unnecessary Transform2D and Transform2DDecorator objects when region rotation is set to false. This bloats the TexturePackerSprite object size and causes severe performance issues when using thousands of TexturePackerSprites. This PR wraps the creation of these objects in a region rotation check. --------- Co-authored-by: Lukas Klingsbo <[email protected]>
- Loading branch information