I've tried forcing the GC to fire, it is definitely collecting some
variables because the ram usage does reduce. The problem seems to be
some hidden references to the mesh variable, and I can't find a single
reference to it outside of the asteroid class itself. I'm beginning to
believe it would be best to just rewrite the asteroidField to reuse
the asteroids; I wanted to avoid this because it wouldn't be as random
as the creation of removal of randomly chosen asteroids.

On Dec 14, 7:51 pm, Miguel Kennedy <[email protected]> wrote:
> In AS3 you don't have any control of what is destroyed by the Garbage
> Collector... You can null the objects/vars but they will only be
> destroyed when the GC decides...
>
> There's an unsupported way to force the GC to delete this objects/
> vars... See this great post by Grant 
> Skinnerhttp://gskinner.com/blog/archives/2006/08/as3_resource_ma_2.html
>
> This one is also a good 
> readhttp://gskinner.com/blog/archives/2006/06/as3_resource_ma.html
> and this one 
> toohttp://gskinner.com/blog/archives/2006/07/as3_resource_ma_1.html
>
> Hope this helps
>
> On Dec 14, 7:39 pm, Liam Jones <[email protected]> wrote:
>
>
>
>
>
>
>
> > sorry for the double post, forgot to include a link
>
> > Game can be seen here:
>
> >http://dl.dropbox.com/u/5312719/3D%20Tunnel.html

Reply via email to