Memoryleak in SpriteKit?
Memoryleak in SpriteKit?
- Subject: Memoryleak in SpriteKit?
- From: Alexander Reichstadt <email@hidden>
- Date: Wed, 09 Apr 2014 12:45:26 +0200
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 (email@hidden)
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:
This email sent to email@hidden