[Papervision3D] Performance check and optimsation tips please

gareth evans gareth at designerterritories.com
Thu Nov 29 12:13:57 PST 2007


Hi Peter

It's for a desktop app that will be left to run on the BBC's big screen
across 8+ major cities, so it's got to be rock solid.

but cheers for the advice, sometimes I think we start coding with all the
best intentions in the world, then we inevitably end up with a hack or
fourteen.

Cheers
Gareth

On 28/11/2007, Peter Kapelyan <flashnine at gmail.com> wrote:
>
> In the worst case scenario - maybe you can just reaload the html page?
> That was you get a brand new swf....until it does that jitter again. So
> maybe reload swf after 10 images?
> I know it's a hack... :)
>
> -Pete
>
> On Nov 28, 2007 9:42 AM, gareth evans <gareth at designerterritories.com>
> wrote:
>
> > Hi Trevor (and List)
> >
> > Too be honest I've not counted, it's more the fact that after each plane
> > is created the memory consumption is up by about 80 - 100k and I've got a
> > new plane being created every 20 seconds (although this is also dynamic and
> > could change). So although it's not a lot 300k a minute for a project that
> > could be left to run all day is inevitably going to slow down.
> >
> > Really I have to go back and create one plane at 100 x 100 pixels and
> > resize it to scaleY and scaleX.
> >
> > I like the idea of extending the plane class, but I'm not quite there
> > yet in terms of fully understanding pv3d.
> >
> > Cheers
> > Gareth
> >
> >
> >
> > On 28/11/2007, Trevor Burton <worldofpaper at googlemail.com> wrote:
> > >
> > > How many planes are you creating before performance is visibly
> > > affected? I'm working on an application that uses a pretty large amount and
> > > has no significant memory issues (apart from just being plain massive) so
> > > i'm just wondering if it's definately the Plane that's giving you the
> > > problems....
> > >
> > > the other option would be to hack the Plane class, or, if you want to
> > > keep it OOP and manageable, extend the Plane class to implement a resize()
> > > method, which would allow you to resize the plane to fit the new image it's
> > > going to accept. you run through the vertices in its geometry and adjust
> > > their positions. It would be a nice addition to Plane to be able to do that
> > > anyway as it has been mentioned before on the list...
> > >
> > > T
> > >
> > >  On Nov 28, 2007 11:43 AM, gareth evans <
> > > gareth at designerterritories.com > wrote:
> > >
> > > >
> > > > Hi
> > > >
> > > > Thanks for the response, I originally tried to removeChild(plane);
> > > > but that
> > > > didn't do anything either.
> > > >
> > > > I also tried having just one plane, but as the images could be any
> > > > size it
> > > > buggers it up too as you can't dynamically change the width and
> > > > height of a
> > > > set plane with plane.width = foo as you only get access to scaleY
> > > > and by
> > > > this time my brain was leaking out of my ear as to figure out how to
> > > > use
> > > > this.
> > > >
> > > > I've already got a class that figures out the proportionally
> > > > reduction
> > > > needed to fit the image within a defined ideal height or width
> > > > depending on
> > > > the orientation of the image, perhaps I could re-look at that.
> > > >
> > > > I'll take answer number 2 and get back to you.
> > > >
> > > > For my own sanity though, I'd love to know how to get rid of the
> > > > buggers as
> > > > this project is an on going thing, and as it's going to be left on
> > > > for hours
> > > > at a time, a 300k per minute memory leak is going to kill it dead
> > > > sooner or
> > > > later.
> > > >
> > > > Cheers
> > > > Gareth
> > > >
> > > >
> > > > paperworld wrote:
> > > > >
> > > > > only have time for a brief thought but two suggestions occur:
> > > > >
> > > > > 1 - removing by reference. Instead of removeChildByName() could
> > > > you hold a
> > > > > reference to the plane and pass it to removeChild() directly? Does
> > > > that
> > > > > make
> > > > > a difference?
> > > > >
> > > > > 2 - reuse the planes... how many planes do you actually have to
> > > > use? In
> > > > > the
> > > > > link there seems to only be one plane on screen at any time (but
> > > > could be
> > > > > missing it due to wrong size screen) even so, you could get away
> > > > with
> > > > > using
> > > > > 2 and just changing the materials on them, rather than creating a
> > > > new
> > > > > plane
> > > > > for every image...
> > > > >
> > > > > T
> > > > >
> > > >
> > > > --
> > > > View this message in context: http://www.nabble.com/Performance-check-and-optimsation-tips-please-tf4887795.html#a13990653
> > > >
> > > >  Sent from the Papervision3D mailing list archive at Nabble.com<http://nabble.com/>
> > > > .
> > > >
> > > >
> > > > _______________________________________________
> > > > Papervision3D mailing list
> > > > Papervision3D at osflash.org
> > > > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> > > >
> > >
> > >
> > >
> > > --
> > > Trevor Burton
> > > http://www.paperworld3d.com
> > >
> > > _______________________________________________
> > > Papervision3D mailing list
> > > Papervision3D at osflash.org
> > > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> > >
> > >
> >
> >
> > --
> >
> > Gareth Evans
> > Designer Territories
> >
> > 5 Parade Chambers
> > North Lane, Headingly
> > Leeds LS6 3HW
> > 07515 398 396
> > 0113 28 999 06
> >
> > www.designerterritories.com
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
> >
>
>
> --
> ___________________
>
> Actionscript 3.0 Flash 3D Graphics Engine
>
> HTTP://AWAY3D.COM
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>


-- 

Gareth Evans
Designer Territories

5 Parade Chambers
North Lane, Headingly
Leeds LS6 3HW
07515 398 396
0113 28 999 06

www.designerterritories.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20071129/445278a1/attachment-0001.html 


More information about the Papervision3D mailing list