atlassprites

Cocos2d: 6 doubts on usage of CCSpriteBatchNode

倖福魔咒の 提交于 2019-12-05 06:12:47
问题 I am wondering how to optimize the usage of CCSpriteBatchNode. In other words I understand that: 1) Each CCSpriteBatchNode instance performs one call to the draw method, resulting in a reduction of OpenGL calls and hence significant performance improvement 2) Each CCSpriteBatchNode can refer to one and only texture atlas What I am not 100% sure and I would like your answer is: 3) If I have one texture atlas, e.g. game-art-hd.png, and create several CCSpriteBatchNode in various classes will I