Re: Slow Cocoa
Re: Slow Cocoa
- Subject: Re: Slow Cocoa
- From: "Tregaskis, Wade" <email@hidden>
- Date: Tue, 17 Feb 2004 09:39:13 +1100
>
> 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?
Off the top of your head, what's the performance difference between creating a new bezier path for each drawing, and keeping one around and manipulating it via transforms or some similar mechanism? Is it a 2x or 3x benefit, or are we talking orders of magnitude?
Wade Tregaskis
_______________________________________________
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.