• 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: Optimizing NSRectFill
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Optimizing NSRectFill


  • Subject: Re: Optimizing NSRectFill
  • From: Peter Ammon <email@hidden>
  • Date: Fri, 19 Dec 2008 15:45:21 -0800


On Dec 19, 2008, at 7:37 AM, Oleg Krupnov wrote:

I'm developing a custom view and noticed that drawRect is becoming
increasingly slow. The Shark has pointed out that the bottleneck is
the NSRectFill function (that calls CGContextFillRect under the hood)
that I use to draw the background of the view.

A common cause of apparently excessive time in graphics related ops is that you are running afoul of coalesced updates by attempting to refresh faster than 60 times a second.


See http://developer.apple.com/documentation/Performance/Conceptual/Drawing/Articles/FlushingContent.html . Try disabling coalesced updates in Quartz Debug and see if it speeds up your drawing. If so, ensure your app does not refresh faster than 60 Hz.

-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: Optimizing NSRectFill
      • From: "Oleg Krupnov" <email@hidden>
References: 
 >Optimizing NSRectFill (From: "Oleg Krupnov" <email@hidden>)

  • Prev by Date: Re: Optimizing NSRectFill
  • Next by Date: Re: populate/resize an already open NSMenu in background
  • Previous by thread: Re: Optimizing NSRectFill
  • Next by thread: Re: Optimizing NSRectFill
  • Index(es):
    • Date
    • Thread