• 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: VU meter drawing performance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: VU meter drawing performance


  • Subject: Re: VU meter drawing performance
  • From: Ethan Funk <email@hidden>
  • Date: Fri, 18 Dec 2009 11:41:08 -0700

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.

Thanks,
Ethan...

On Dec 18, 2009, at 11:23 AM, Kyle Sluder wrote:

On Fri, Dec 18, 2009 at 9:16 AM, Ethan Funk <email@hidden > wrote:
How can I get the displays to all update together?

This question would probably be better asked on the cocoa-dev list. But basically, you should stop drawing directly, and instead use -setNeedsDisplay: to cause a redraw at the next available refresh cycle. Otherwise you might (that is to say, you probably will) outpace the 60Hz refresh limit imposed by Quartz, which will then throttle your drawing as a penalty.

--Kyle Sluder

_______________________________________________ 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
  • Follow-Ups:
    • Re: VU meter drawing performance
      • From: Shawn Erickson <email@hidden>
    • Re: VU meter drawing performance
      • From: David Duncan <email@hidden>
References: 
 >VU meter drawing performance (From: Ethan Funk <email@hidden>)
 >Re: VU meter drawing performance (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: iPhone - RenderCallback not called when phone is locked
  • Next by Date: Re: VU meter drawing performance
  • Previous by thread: Re: VU meter drawing performance
  • Next by thread: Re: VU meter drawing performance
  • Index(es):
    • Date
    • Thread