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.
Description
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.
Checklist
docs
and added dartdoc comments with///
.examples
ordocs
.Breaking Change?
Related Issues