• 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: Optimizing NSRectFill
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Optimizing NSRectFill


  • Subject: Re: Optimizing NSRectFill
  • From: "Michael Ash" <email@hidden>
  • Date: Sat, 20 Dec 2008 21:15:26 -0500

On Sat, Dec 20, 2008 at 4:47 PM, Jean-Daniel Dupas
<email@hidden> wrote:
> So I think that you're right (and that everything is synchronous) but I also
> think that the 'flush results to screen' blocks until the screen is ready
> and so limit the number of redraw to the refresh rate of the screen.
> If this is effectively the case, your timer trick will not be very helpful.

As long as the timer's time interval is less than the screen refresh
interval (and the technote says to simply assume 60Hz and that most
drawing doesn't need more than 30Hz, so that's easy enough to assure)
then it will work. And even if the timer is more, it will depend on
the behavior of the event loop. If the event loop is smart it will
process all queued events before running the next timer, in which case
the technique will work even for a zero-interval timer, but I don't
know if it actually works this way.

Mike
_______________________________________________

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: 
 >Optimizing NSRectFill (From: "Oleg Krupnov" <email@hidden>)
 >Re: Optimizing NSRectFill (From: Peter Ammon <email@hidden>)
 >Re: Optimizing NSRectFill (From: "Oleg Krupnov" <email@hidden>)
 >Re: Optimizing NSRectFill (From: "Michael Ash" <email@hidden>)
 >Re: Optimizing NSRectFill (From: "Kyle Sluder" <email@hidden>)
 >Re: Optimizing NSRectFill (From: "Michael Ash" <email@hidden>)
 >Re: Optimizing NSRectFill (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Copying Managed Objects from App to Doc MOContext
  • Next by Date: Re: Newbie Question: implementing a stack
  • Previous by thread: Re: Optimizing NSRectFill
  • Next by thread: Re: Optimizing NSRectFill
  • Index(es):
    • Date
    • Thread