Hi, in trying to find the source of a memory leak I think to have in my project, I ended up creating a plain SpriteKit project from template and did the following:
- (IBAction)test:(id)sender { if (self.skView.scene.children.count>0){ [self.skView.scene removeAllChildren]; } else { for (int i=0;i<2000;i++){ [self.skView.scene addChild:[SKNode node]]; } } } This code is bound to a menu item method test. When looking at memory in Xcode I would expect for it before adding any children to be identical to after removing all children. But memory steadily increases. Is there something wrong with my assumption or is there a leak in SpriteKit? Thx _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com