• 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
Re: Leak when animating Core Animation Superlayer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Leak when animating Core Animation Superlayer


  • Subject: Re: Leak when animating Core Animation Superlayer
  • From: Brian Christensen <email@hidden>
  • Date: Sun, 1 Jun 2008 13:31:46 -0400

On Jun 1, 2008, at 10:28 , Stéphane Droux wrote:

If you kill the timer after its been running for a while, does the
memory usage drop back down? Maybe the implicit animations are never
completing before a new one gets added, so they're just stacking up on
top of each other.



I don't think they should stack up. Core animation default duration is 0.25
second and these animations are triggered every 0.4 secs.
Anyway, I added a timer to invalidate the first one after 60 seconds. The
memory usage only became constant. It was about 60% more than when the
application started. No memory was released.

I would consider that to be expected behavior. If you aren't ever releasing the layers you created, why would any of the relevant memory be freed? The timer and the animations it is causing to be performed should not really be incurring a very significant memory footprint in addition to what the layers on their own are already using (my own observations at least indicate that running the test app with or without the timer makes very little difference in that regard).


Are the two methods you posted really the only two methods in your entire test app? Or are you doing something else somewhere in addition to this? Feel free to e-mail me the test project off-list if you like.

/brian

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: Leak when animating Core Animation Superlayer
      • From: "Stéphane Droux" <email@hidden>
References: 
 >Re: Leak when animating Core Animation Superlayer (From: Brian Christensen <email@hidden>)
 >Re: Leak when animating Core Animation Superlayer (From: "Stéphane Droux" <email@hidden>)
 >Re: Leak when animating Core Animation Superlayer (From: Brian Christensen <email@hidden>)
 >Re: Leak when animating Core Animation Superlayer (From: "Stéphane Droux" <email@hidden>)
 >Re: Leak when animating Core Animation Superlayer (From: "Jonathan del Strother" <email@hidden>)
 >Re: Leak when animating Core Animation Superlayer (From: "Stéphane Droux" <email@hidden>)

  • Prev by Date: Re: Graphing With Google Charts API
  • Next by Date: Re: Leak when animating Core Animation Superlayer
  • Previous by thread: Re: Leak when animating Core Animation Superlayer
  • Next by thread: Re: Leak when animating Core Animation Superlayer
  • Index(es):
    • Date
    • Thread