Hi all,
I'm new and I have searched around for discussions regarding sprites creation and object retention but so far I couldn't find any satisfactory answer.
I'm working on a game scene where there will be many sprite created at random over time. I noticed that the FPS drop considerably after 5 minutes. Checking with the performance instrument I noticed that objects didn't seems to be released.
I do call [layer removeChild:sprite cleanUp:Yes] but tht doesn't seems to help.
The only thing I haven't try so far is to create a object pool for the sprites so that I don't keep creating new sprites but I can't find any tutorial to indicate that this is the how real-world practice.
Btw, what is the right way to clean up sprites?
Thanks in advance.