Problem was that in case of Away3D object setting to null doest free
memory.

Have You made experiment like this:

make in loop :

var cube:Cube = new Cube();
scene.addChild(cube);
scene.removeChild(cube);
cube=null;

This will cause to increase memory usage constantly up...




On 9 Sty, 23:56, "Brian Bosak" <[email protected]> wrote:
> ?One thing you could do is set objects that you are no longer using to null.
> That will save a lot of memory as well, but it is generally more efficient
> (in terms of RAM and CPU) to re-use existing objects as much as possible.
>
> -----Original Message-----
> From: macgor
> Sent: Sunday, January 09, 2011 4:52 PM
> To: Away3D.dev
> Subject: [away3d] Re: Garbage Collector - bad news
>
> so I started to rewrite my code to reuse instances of Away objects.
> Current saved 99% of memory that previously leaked.. :) But this is
> not how I'd like it to work...

Reply via email to