Fixed #1615 Optimization performance for TextureAtlas

Optimization performance for TextureAtlas