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