Re: Cheap replacement for bezierPathWithOvalInRect fill?
Re: Cheap replacement for bezierPathWithOvalInRect fill?
- Subject: Re: Cheap replacement for bezierPathWithOvalInRect fill?
- From: Scott Thompson <email@hidden>
- Date: Thu, 20 Apr 2006 07:09:11 -0500
On Apr 19, 2006, at 7:43 PM, Scott Ellsworth wrote:
I experimented with caching the bezier paths, and with changing the
bezier path curve control points, and neither of these turned out
to the bottleneck. My bottleneck is the fill command on the circles.
It appears my best options are either using Quartz directly, or
creating an image and blitting that. Is there a third option I
missed, and does anyone have any strong opinions on which is likely
to be straightforward and performant? (I know, I know - choose
only one.)
(NB - I did read the docs, which is what convinced me to try moving
the control points. I also did some list archive searches, and got
inconclusive results for which would work best.)
Is there a relatively small set of colors, or is each circle it's own
color?
If there are a relatively small selection of colors, then you might
stuff each different colored circle into a CGLayer blitting the
CGLayers is supposed to be the most efficient way of reproducing
graphics many times on the screen..
Another solution, if it's possible, might be to select all the
circles of a given color, create one large path with just the circles
of that color, and draw that path all at once.
Another Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden