• 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: NSView -drawRect optimization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView -drawRect optimization


  • Subject: Re: NSView -drawRect optimization
  • From: Peter Ammon <email@hidden>
  • Date: Tue, 12 Feb 2008 14:31:26 -0800


On Feb 12, 2008, at 2:02 PM, Paul Bruneau wrote:


My only concern with it is the frames per second draw speed of the view (it's all done in -drawRect). I have done pretty good testing to remove individual segments of code from the loop in order to see what is taking the time:

Hi Paul,

It's not clear how you are measuring the fps, but a common cause of slow drawing is that your app triggers immediate rendering too often, which will be throttled by coalesced updates. See http:// developer.apple.com/technotes/tn2005/tn2133.html for more information.

To determine if you are being bitten by this, launch Quartz Debug and turn on Disable Beam Synchronization under the Tools menu. If your fps improves substantially, that's the culprit.

-Peter

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSView -drawRect optimization
      • From: Paul Bruneau <email@hidden>
References: 
 >NSView -drawRect optimization (From: Paul Bruneau <email@hidden>)

  • Prev by Date: Re: In-loop releasing of objects does not free memory?
  • Next by Date: Re: NSView -drawRect optimization
  • Previous by thread: Re: NSView -drawRect optimization
  • Next by thread: Re: NSView -drawRect optimization
  • Index(es):
    • Date
    • Thread