I am using Cocos2d 2.0 with ARC enabled. My game is a random generated game, so I need to load / unload textures (spritesheet-batchnode) inside a scene in the middle of the game. I am trying to remove priteframesfromfile and remove the texture for the key for the sprite that I want to offload in the middle. When I use dumpcachedtextureInfo after unloading a sheet, this spritesheet texture does not appear in dumpcachedtextureinfo logs.
But when I use the tool / activity monitor to profile my application, the actual memory usage does not disappear after unloading textures and sprites.
Is there a way in which dumpcachedtextureinfo does not show a texture that is still in memory? In addition, the My livebytes column in the distributions shows 4 MB.
Also, as I read in different places, that allocations do not show texture memory.
Thus, in my bytes in distribution bytes, 4 MB is indicated, my total texture memory, as shown in dumpcchedtextureinfo logs, is shown at 84 MB, but the actual memory usage is displayed on the memory monitor, equal to 84 + limit size + live bytes
I can not understand this difference?
I'm not leaving the scene, so I'm not sure if ARC stores memory or what?
source
share