Re: Select a NSBezierPath
Re: Select a NSBezierPath
- Subject: Re: Select a NSBezierPath
- From: Robert Clair <email@hidden>
- Date: Tue, 21 Sep 2004 19:55:58 -0400
This sounds very slow. If you have lots of objects in your view, that
means you redraw the entire document each time the user clicks.
considering how slow Quickdraw Regions used to be for hit-testing in
games back when, I'd suggest you definitely do a rect-intersection
test and only redraw those objects that actually intersect the rect.
That will give you a dramatic speed-up the likes of which you wouldn't
have thought possible
Uh... I don't base my software design decisions on memories of how
obsolete systems worked years ago
on old machines. :-)
Anyway - I thought I mentioned it in one of the other posts, but _of
course_ I do a bounding box
cull. That should be a part of any scheme, analytic or pixel. All my
primitives check their bounding box
against the view bounding box and compound objects check first the
whole object and then if it passes,
each subpart in turn checks just itself before it tries to draw.
......Bob Clair
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden