Wednesday, December 14, 2011

Dynamic symbol instanstiation, garbage collection and memory management

As my new anchors and paths metaphor results in hundreds of sprites being created and binned per second every time an anchor is dragged the potential for memory leaks is high.
So knowing what sprite instances can be present on a canvas and what event listeners they have I have written a function that strips the listeners and preps them for garbage collection in order to optimise memory usage.

No comments:

Post a Comment