SeharAfzal / cocos2d-android-1

Automatically exported from code.google.com/p/cocos2d-android-1
0 stars 0 forks source link

Textures Not being Released from Memory #87

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Load a lot of textures in memory by adding sprites in a GAMELAYER
2. Remove GAMELAYER and is all Children
3. call CCTextureCache.purgeSharedTextureCache

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
I am testing it on Samsung Glaxy S  &  Nexus S.

Please provide any additional information below.

I load *different* sprites in a layer and load this layer my native heap goes 
around 10~ 15MB then i remove all sprites from Layer and set that layer to null 
and i clear CCTextureCache now my native memory should come down but it still 
keep around 10~15 mb 
please help i want to clear all the loaded textures from memory and than reload 
new textures without restarting game . 
Its like i want to make a new level of my game and i want to remove all 
textures used in previous level.

HELPPPP

Original issue reported on code.google.com by hafiz.ub...@gamevstudios.com on 10 Jul 2011 at 8:10