Re: Speed up drawing of View with multiple NSBezierPaths
Re: Speed up drawing of View with multiple NSBezierPaths
- Subject: Re: Speed up drawing of View with multiple NSBezierPaths
- From: Chuck Soper <email@hidden>
- Date: Sun, 6 Jul 2003 18:09:31 -0700
At 12:13 PM -0700 7/6/03, Henry McGilton wrote:
Depending on your application could you just reduce the number of
NSBezierPaths. For example, if you're drawing a thousand rectangles
with a thousand NSBezierPaths you should be able to draw a thousand
rectangles with one NSBezierPath. Yet, all of the rectangles will
need to have the same attributes (line width, color, etc.).
Not quite true. Check out the AppKit function NSRectFillListWithColors and
NSRectFillListWithColorsUsingOperation (this second one for the
benefit of those who will not scroll down half a page)
What was "Not quite true" about my statement? Isn't appending a
thousand rectangles to a single path (using appendBezierPathWithRect)
significantly faster than using a thousand paths each with a single
rectangle? The original question was about general optimization not
rectangles.
_______________________________________________
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.