Hey Matt

the speed problem may be down to the way you are drawing teh line segments.
If you are using new LineSegment for each line, you will incure overhead
from matrix calculations etc as each line is being handled as a separate
object. You will get a much better framerate if you create a Mesh object and
add linesegments using the addSegment() method, as these will end up all
contained in the same object. because you specify vertices in the addSegment
method, you can optimiss still further by reusing the ending vertex point of
the preceeding segment for the next segment


hth!


Rob

On Sun, Jul 19, 2009 at 9:53 PM, Matt N. M. <[email protected]> wrote:

>
> What else does the speed depend on?
> The bottom line is away3d slows down to 5 fps with 500-1000 line
> segments depending on cpu speed, and if you can just take my word for
> it, I want to know if that's expected behavior.
> I will go ahead and code a papervision version of the class and see if
> it is faster.
>
> Matt




-- 
Rob Bateman
Flash Development & Consultancy

[email protected]
www.infiniteturtles.co.uk
www.away3d.com

Reply via email to