Re: Slow Cocoa
Re: Slow Cocoa
- Subject: Re: Slow Cocoa
- From: John Randolph <email@hidden>
- Date: Mon, 16 Feb 2004 16:55:40 -0800
In that case, are you using a -compositeToPoint:.. or one of the
-drawInRect: methods?
The former should be considerably quicker, since it doesn't have to
transform a raster.
-jcr
On Feb 16, 2004, at 12:06 PM, Sam McCandlish wrote:
I am actually drawing to an NSImage. I am using [NSBezierPath
strokeLineFromPoint:toPoint:] to draw LOTS of little lines. They are
not anti-aliased.
On Feb 16, 2004, at 2:20 PM, John Randolph wrote:
On Feb 15, 2004, at 7:23 PM, Sam McCandlish wrote:
I am making an app that draws using Quartz. I used to use the C
functions, but then I started using NSBezierPath. When I tried that
everything was slower. I am guessing this is because of the
messaging. Is there a way to "speed up" objc?
First question: are you keeping the bezierpath around, or creating a
new one every time -drawRect: is called?
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.