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

Re: VBL sync


  • Subject: Re: VBL sync
  • From: Scott Thompson <email@hidden>
  • Date: Thu, 6 Apr 2006 08:00:30 -0500


On Apr 6, 2006, at 4:56 AM, Valerio Ferrucci wrote:

What do you mean by "flush"?
I don't flush anything. I simply draw rects (and other stuffs) in my "drawRect" routine.


I see flickering when I scroll some elements in my view and I was sure it was dued to VBL async draw.

Syncing to the VBL is probably not the solution to your problem.

Flushing is when the computer collects the images of all the window back buffers and transfers them to the screen.

On Tiger the system works to collect all the screen changes and flush them to the screen at once. The window server works to synchronize this flush to the refresh rate of the monitor you are on. For most LCDs the refresh happens about once every 60th of a second or so.

The short answer, therefore is that you should not need to do any explicit VBL syncing on Tiger. A corollary is that if you try to force the screen to redraw faster than the refresh rate, you're going to end up blocked waiting on Tiger to refresh and your application is going to be slow.

If you want to display animations and you have very strict timing requirements, then your best bet is to use Core Video.

Perhaps it would be easier to tackle your drawing problems directly. Give us some more information about how you are drawing your content and perhaps we can make some more helpful suggestions on how to improve the results.

Scott


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >VBL sync (From: Valerio Ferrucci <email@hidden>)
 >Re: VBL sync (From: Ricky Sharp <email@hidden>)
 >Re: VBL sync (From: Valerio Ferrucci <email@hidden>)

  • Prev by Date: Re: cross development behaviour : dock disappears
  • Next by Date: Re: Strange checkbox <-> edit field IB bug?
  • Previous by thread: Re: VBL sync
  • Next by thread: +[NSPasteboard pasteboardByFilteringData:ofType:] returns nil
  • Index(es):
    • Date
    • Thread