Re: Speed of Quartz (was: optimizing compilers)
Re: Speed of Quartz (was: optimizing compilers)
- Subject: Re: Speed of Quartz (was: optimizing compilers)
- From: Max Horn <email@hidden>
- Date: Mon, 4 Feb 2002 23:34:29 +0100
At 14:01 Uhr -0800 04.02.2002, John C. Randolph wrote:
On Monday, February 4, 2002, at 11:14 AM, Erik M. Buck wrote:
// define a new bezier path for every two points, set attributes, and
stroke
for(i = 1; i < MYNUM_POINTS; i++)
{
tempPath = [[NSBezierPath alloc] init];
[tempPath moveToPoint:_myPoints[i - 1]];
[tempPath lineToPoint:_myPoints[i]];
[tempPath setLineWidth:1.0];
[tempPath setLineCapStyle:NSRoundLineCapStyle];
[tempPath setLineJoinStyle:NSRoundLineJoinStyle];
[tempPath setMiterLimit:4.0];
[tempPath stroke];
[tempPath release];
}
This is just a guess, but I think that what's killing you here
is memory allocation.
John,
just to clarify this: what you quote is the 10 times FASTER version!
Max
--
-----------------------------------------------
Max Horn
Software Developer
email: <
mailto:email@hidden>
phone: (+49) 6151-494890