On 21-Jan-07, at 2:23 PM, Trausti Thor Johannsson wrote:
Has anyone got a solution for a super canvas ?
My problem is this.
I draw objects into a canvas depending if they are in view or not,
not in view, I don't draw them.
Sounds simple enough, except my problem is that the total big
picture can easily get to be a few million pixles in height and
width, and of course when I have an array of few hundred items
scattered around, this gets really slow really fast.
And now on a G5 and MBP Intel it is almost to the point of being
useless.
Any ideas ?
Use some sort of space partitioning to enable coarser visibility
tests. A quad tree would be my first choice for a 2D canvas, but it
all depends on the data you're drawing. A Google search for "quad
tree" or "space partitioning" should turn up some good resources.
Frank.
<http://developer.chaoticbox.com/>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>