Skip navigation.
 
mlRe: NSView -drawRect optimization
FROM : Peter Ammon
DATE : Tue Feb 12 23:31:26 2008

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

Related mailsAuthorDate
mlNSView -drawRect optimization Paul Bruneau Feb 12, 23:02
mlRe: NSView -drawRect optimization John Stiles Feb 12, 23:17
mlRe: NSView -drawRect optimization Peter Ammon Feb 12, 23:31
mlRe: NSView -drawRect optimization Greg Titus Feb 12, 23:39
mlRe: NSView -drawRect optimization Graham Feb 12, 23:49
mlRe: NSView -drawRect optimization Erik Buck Feb 13, 00:51
mlRe: NSView -drawRect optimization Paul Bruneau Feb 13, 14:22
mlRe: NSView -drawRect optimization Paul Bruneau Feb 13, 14:22
mlRe: NSView -drawRect optimization John Stiles Feb 13, 18:41
mlRe: NSView -drawRect optimization Paul Bruneau Feb 14, 14:47
mlRe: NSView -drawRect optimization Paul Bruneau Feb 14, 15:13
mlRe: NSView -drawRect optimization Paul Bruneau Feb 14, 15:26
mlRe: NSView -drawRect optimization Kyle Sluder Feb 14, 16:43