• 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 "drawing too fast"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Leak when "drawing too fast"


  • Subject: Re: Leak when "drawing too fast"
  • From: Andreas Mayer <email@hidden>
  • Date: Thu, 25 Jul 2013 19:09:52 +0200

A followup:

Am 10.07.2013 um 02:10 schrieb Uli Kusterer <email@hidden>:

> I don’t think the timers leak. Instead, I think they probably just queue up on the event loop because their fire interval is greater than that at which you add new timers by calling setNeedsDisplay. Could that be it?

You are right, Uli. They get released when I stop the animation.

> FWIW, I remember hearing at some WWDC that MacOS X caps its drawing at a certain frequency. I think it was either 60Hz or 60fps, not sure anymore. So my guess is it’s not worth trying to draw any faster because the back buffer is only flushed to the screen at this slower interval anyway.

I tried different ways to limit the drawing frequency but ended up with either timers piling up or jittery animation.

So I finally bit the bullet and moved to Core Animation. While that solved my problem - some issues notwithstanding - I'm still not sure how to draw at exactly the right frequency manually. Oh well ...


Andreas
_______________________________________________

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 "drawing too fast"
      • From: Uli Kusterer <email@hidden>
References: 
 >Leak when "drawing too fast" (From: Andreas Mayer <email@hidden>)
 >Re: Leak when "drawing too fast" (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: storage for context: value
  • Next by Date: Re: Leak when "drawing too fast"
  • Previous by thread: Re: Leak when "drawing too fast"
  • Next by thread: Re: Leak when "drawing too fast"
  • Index(es):
    • Date
    • Thread