Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGContextSetLineWidth / performance issues




On Jun 16, 2005, at 11:17 AM, nick briggs wrote:

Thanks Scott

CGContextStrokeLineSegments does improve performance significantly... for my tiger users

To answer your question the line represents an oscilloscope.

OK... the other optimization that Apple suggests is only putting in as many lines as you strictly need. If your trace is 800 pixels wide, then 800 segments seems reasonable. If your window is only 100 pixels wide, however, trying to squeeze 800 points in there may be more than you need. You might be able to filter the data.


If you're displaying an oscilloscope display, another thing you're likely to run into is the need to separate the data capture loop from the display loop. If these two things are tightly coupled, you can run into problems where the refresh rate of the display can limit the speed at which you capture voltage data.

Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden

This email sent to email@hidden
References: 
 >CGContextSetLineWidth / performance issues (From: nick briggs <email@hidden>)
 >Re: CGContextSetLineWidth / performance issues (From: Scott Thompson <email@hidden>)
 >Re: CGContextSetLineWidth / performance issues (From: nick briggs <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.