@Peter, I will try with cleaning view and scene concept

@Cauê, I've created one public variable on which I create new
ObjectContainer3D's so there shouldn't be any pointers to this
variable. I thought when not deleting view and scene I will follow the
reuse concept. Content of every ObjectContainer3D is much different,
so reusing of planes or obj files is impossible.

On Jul 30, 3:38 pm, Cauê Waneck <[email protected]> wrote:
> Do you still have any variable pointing to the objectcontainer3D instance?
> The garbage collector will only collect instances that don't have any
> pointers (variables) linked anymore to the application node and its child.
> Couldn't you reuse the instances, instead of creating new ones, and deleting
> the old? It would definately be a less costly procedure.
>
> 2009/7/30 Peter Kapelyan <[email protected]>
>
> > The last thing that you mentioned seemed to be the only thing that would
> > help when I ran some tests, but I am interested if anyone else has any
> > alternative approaches also.
>
> > -Pete
>
> > 2009/7/30 Paweł Stanisławczuk <[email protected]>
>
> >> Hi!
>
> >> I've got a little problem with memory in my Away3D project. I've
> >> created basic (camera, scene, view) structure and I'm creating
> >> ObjectContainer3D containing some planes, obj etc. and adding it to
> >> scene. My project is about many different ObjectContainer3D containing
> >> different models. When unloading ObjectContainer3D from scene I'm
> >> removing all the listeners, removing the ObjectContainer3D, and null
> >> him at the end. But with every time of unloading old ObjectContainer3D
> >> and loading new one, the total memory raises. This, I'm afraid means
> >> that the ObjectContainer3D remains in memory.
>
> >> Loading and unloading ObjectContainer3D from scene is a concept I was
> >> suggest to do in this forum in older topic (which I can't find, seems
> >> old topics are cleaned).
>
> >> Is there something else I should clean? Every Object3D from
> >> ObjectContainer3D ? Every time make a new instance of view and scene?
>
> >> Regards
> >> Paweł Stanisławczuk
>
> > --
> > ___________________
>
> > Actionscript 3.0 Flash 3D Graphics Engine
>
> > HTTP://AWAY3D.COM

Reply via email to