views:

97

answers:

1

Hi,

I am writing a small game in cocos2d. I am adding child

    [ self addChild: sprite1];  

Should I remove these before going to next scene by using

 [self removeChild: sprite1 cleanup:YES];   

Does it increase the performance in device ?

Thank You.

+1  A: 

Short answer, no. The scene will do its own cleanup and release its child nodes when it deallocates. So as long as you send [super dealloc]; in your scene's - (void)dealloc you'll be fine.

Frank Mitchell
Thank you Frank.
srikanth rongali