Re: VU meter drawing performance
Re: VU meter drawing performance
- Subject: Re: VU meter drawing performance
- From: David Duncan <email@hidden>
- Date: Fri, 18 Dec 2009 10:49:51 -0800
On Dec 18, 2009, at 10:41 AM, Ethan Funk wrote:
> Yep, that fixes the VU meter drawing! I though that by using setNeedsDisplay, one update would be popped off the queue per refresh cycle. But it looks like a refresh cycle refreshes ALL queued updates. I was not aware of the Quartz drawing penalty, but it does make sense from an OS point of view.
The "penalty" is that if you try to draw to a window that is already flushed (which occurs at the end of each run loop cycle) then you will be held on a lock rather than allowed to draw. It effectively forces you to not draw faster than the screen refresh, but in doing so also prevents that thread from doing anything else.
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden