I am developing a game in android with Cocos2d framework with latest build from github(Weikuan Zhou).
In my game, I used lots of images(total images size is around 11MB).
Problem: I am getting the black box instead of images when I play my game more than 3 times.
What steps will reproduce the problem? 1. When I play my game more than 3 times via "Play Again" functionality of my game.
What is the expected output? What do you see instead?
- images should be displayed properly instead of "BLACK BOX"
.
and in my logcat, I see the Heap memory goes around 13Mb.
- I already release Texture via below method
CCTextureCache.sharedTextureCache().removeAllTextures();
I also tried to remove sprite manually ex. removeChild()
method.
But so far not succeeding to find any solution.
If any one have solution for this please let me know.