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.
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)deallocyou’ll be fine.