Hi
In my project I'm using this Box2D JS port:
https://github.com/illandril/box2dweb-closure
https://raw.githubusercontent.com/illan ... ompiled.js
(The below issue is present with Box2DWeb-Closure was present with Box2DWeb as well.)
When I open http://tobireif.com/boomchat/ in Firefox on Mac OS, FF's memory usage is at eg 239-262 MB. When I click many times on the various smiley/emoticon buttons on the page, in fast succession (so that the screen stays over-filled with various balls for a while) (as stress test), memory usage goes up to eg 403 MB, after a while. And although I then do nothing for minutes, it still doesn't go back to under 400 MB.
(When I click more it can go to eg 530 MB.)
Chrome's profiler points to Box2D.
Any idea?
If the issue can't resolved, I'll have to stop using Box2D (no offense! but I need to ensure that memory usage goes down when all balls are gone), and instead use some super-simple projectile trajectory calculation (without collision detection). But I'd miss getting collision handling for free ...
Tobi
In my project I'm using this Box2D JS port:
https://github.com/illandril/box2dweb-closure
https://raw.githubusercontent.com/illan ... ompiled.js
(The below issue is present with Box2DWeb-Closure was present with Box2DWeb as well.)
When I open http://tobireif.com/boomchat/ in Firefox on Mac OS, FF's memory usage is at eg 239-262 MB. When I click many times on the various smiley/emoticon buttons on the page, in fast succession (so that the screen stays over-filled with various balls for a while) (as stress test), memory usage goes up to eg 403 MB, after a while. And although I then do nothing for minutes, it still doesn't go back to under 400 MB.
(When I click more it can go to eg 530 MB.)
Chrome's profiler points to Box2D.
Any idea?
If the issue can't resolved, I'll have to stop using Box2D (no offense! but I need to ensure that memory usage goes down when all balls are gone), and instead use some super-simple projectile trajectory calculation (without collision detection). But I'd miss getting collision handling for free ...
Tobi