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: Jeff Skrysak <email@hidden>
- Date: Mon, 7 Jul 2003 08:37:42 -0500
On Sunday, July 6, 2003, at 03:32 PM,
email@hidden wrote:
You might wish to describe in somewhat more detail what you are trying
to
achieve.
Best Wishes,
........ Henry
Thanks Chuck and Henry, I'll have to get my hands on that Cocoa
Programming
book.
It's a "LOGO" program (that old derivative of Lisp that allows young
learners to
draw shapes by giving commands to a turtle).
So, any shape goes. Aside from a direct command, such as "square 100"
instead of telling the turtle to make 4 separate sides, the rest of the
shapes probably
obtain optimization from the parser's "intelligence".
You can imagine that if we currently go line by line, or code segment
by code
segment, with the parser, you really just get thousands of paths to
draw.
(ie. a circle can be drawn by telling the turtle to turn 1 degree, move
1 space, 360 times).
If the user REALLY wants that, we have to give it to them, but I want
to optimize
if possible (chapter 13 functions, thanks Chuck), but in the future
change the algorithms
internally to hide the fact that we took their 360 commands and turned
it into 1.
- Jeff
_______________________________________________
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.