Re: VBL sync
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>) |