• 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: Tue, 30 Jul 2013 15:12:02 +0200

Am 26.07.2013 um 12:41 schrieb Uli Kusterer <email@hidden>:

> No no no! Don’t do both at the same time! The display link callback is called exactly when you’re supposed to draw!

Hm. So i remove drawRect: and call that in the callback instead?

> If you call setNeedsDisplay: there, you’ll be waiting until the next time *by definition*.

In that case redraw would lag a bit behind, which wouldn't be a problem in my case. But the timers piling up suggests, that this is more of a fundamental mistake to make.

Thanks Uli. I might give this solution a try just to see if I can get it to work. :)


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


References: 
 >Leak when "drawing too fast" (From: Andreas Mayer <email@hidden>)
 >Re: Leak when "drawing too fast" (From: Uli Kusterer <email@hidden>)
 >Re: Leak when "drawing too fast" (From: Andreas Mayer <email@hidden>)
 >Re: Leak when "drawing too fast" (From: Uli Kusterer <email@hidden>)
 >Re: 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: Mixing Obj-C and C "methods"
  • Next by Date: Re: Exiting non-POSIX threads?
  • Previous by thread: Re: Leak when "drawing too fast"
  • Next by thread: Re: Leak when "drawing too fast"
  • Index(es):
    • Date
    • Thread