Re: VBL sync
Re: VBL sync
- Subject: Re: VBL sync
- From: Valerio Ferrucci <email@hidden>
- Date: Thu, 6 Apr 2006 11:56:51 +0200
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.
Il giorno 05/apr/06, alle ore 23:20, Ricky Sharp ha scritto:
On Apr 5, 2006, at 7:51 AM, Valerio Ferrucci wrote:
Hi,
does anyone can give me some hints about syncing my drawing with
the vertical retrace of the screen?
Note:
I'm not using OpenGL (no directly) but simple cocoa drawing
(NSBezierPath etc...)
Do you need to run on systems before 10.4 (Tiger)? On Tiger,
drawing is already synced up. Here's a quote from a while back on
quartz-dev:
"one important change that will affect performance (and more likely
benchmarks) is flushing. For the past few years we've been telling
developers not to flush faster than the display refresh rate as
that is just wasteful, and in Tiger we will be enforcing this by
making every flush operation vbl syned. This is important to reduce
or eliminate visual tearing in the system and continue going
forward with glitch free playback in the system."
I know for my app which does tons of custom drawing, no tearing
exists when running on Tiger.
If you need further assistance, quartz-dev would be a better place
to ask.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
==================================================================
Valerio Ferrucci Tabasoft Sas
email@hidden http://www.tabasoft.it
_______________________________________________
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>) |