Alright, so the problem I am facing is: I am trying to make an erase effect or fog of war effect using the canvas object and a sprite with destination out effect. Here is the capx. What I am noticing is that with WebGL on, there is a huge increase in the use of memory. Memory keeps accumulating to a point where the game would stop briefly and then the memory is flushed out and the game resumes to do the same again.
What I have tried is to disable all actions on the canvas but as long as the canvas is visible the same trend is observed. And this is going to worsen with increasing canvas size.
Also the erase effect works very well with just canvas2D rendering.
I am wondering if this is a bug or if there could be room for some kind of optimization in webGL.
I am planning to make a plugin/a behavior for this effect. So if this is issue can be fixed, it would help greatly. Thanks.