Question: Why menory usage grow in the Doc example?
Closed this issue · 2 comments
linonetwo commented
3mcd commented
Hey, great question. I had the same reaction when I learned about setInterval and requestAnimationFrame. Check out this StackOverflow issue:
https://stackoverflow.com/questions/14034107/does-javascript-setinterval-method-cause-memory-leak
Based on the second answer there, it looks like this is likely just the standard behavior of Chrome DevTools. Here's an outstanding Chrome bug: https://bugs.chromium.org/p/chromium/issues/detail?id=120186
linonetwo commented
Get it, the slope is caused by interval API, so if the ratio of the slope is constant, it means @javelin/ecs
is not allocating any new memory, that is great!
Thanks for your good work!