• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Memoryleak in SpriteKit?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Memoryleak in SpriteKit?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Excessive open gui graphics files on Mavericks
  • Next by Date: Re: Opinion: Core Data or roll my own?
  • Previous by thread: Re: Opinion: Core Data or roll my own?
  • Next by thread: Re: Memoryleak in SpriteKit?
  • Index(es):
    • Date
    • Thread