Memory leak in CreateJS

720 Views Asked by At

I created a browser game with CreateJS. The problem I encountered is that when the game is open, it starts to eat more and more memory as time goes on. It does that even when I do nothing in the game - when nothing new is being drawn to the stage. I took snapshots in Chrome of the memory usage, and it jumps from 14mb to 90mb in about 10 minutes of the game simply being open.

When I run the following line in the console:

createjs.Ticker.paused=true

The memory leak stops. So my question is, why does the createjs Ticker (which calls the stage's update method) causes an increasing amount of memory to be used each time it runs?

0

There are 0 best solutions below