CCSpriteBatch not growing on Android?

CCSpriteBatch not growing on Android?
0.0 0


I am facing quite an odd situation particularly on some Android devices, we are constantly adding sprites in a spritebatch and when the capacity is reached apparently the spritebatch does not grow and the sprites do not get rendered…the objects are there, created and run actions but are not rendered. This happens after an upgrade of cocos2d-x from 0.11 to 2.1.0 and only on Android. Win32 works ok.

I use the following code:


Any ideas?


It appears the issue occurs only on some devices Samsung Galaxy S+ I9001 for example yet on Asus Transformer TF101 works ok.

I’ve also tried to manually set the batchnode to the sprite using sprite->setBatchNode(batch); yet the same issue occurs.

Thank you