On 2/24/16, 10:13 AM, "Clint M" <cmod...@gmail.com> wrote:

>I was able to reproduce the behavior while using the references array and
>uncommenting the line:
>
>references.splice( references.indexOf(lastInstance),1);
>
>It might be that Player holds a reference to the object spliced out
>because
>it does return it.

I can use the reference array and splice out the last instance and again,
at 1 second intervals, hitting the GC button does free up the instances.

How much garbage builds up before it gets collected does have to do with
how memory is used and frame rates and how busy the player is doing other
things, but the key thing is that it will get GC'd eventually.

-Alex

Reply via email to