Firefox does not clear memory when a refresh my Three.js based page

Viewed 251

I have been coding for an hour a web page in Three.js using Firefox as a browser. For some reason whenever I press refresh Firefox, it keeps increasing the memory. Doesn't have a garbage collector? When I see the memory from the tools, I see that only 74MB are dedicated to the web page. So the other 7000 MB are from previous sessions, I assume ???

enter image description here

1 Answers

You need to dispose properly the instances of Material, Geometry, WebGLRenderer and scene. Here is a well self-answered question on the topic, but the best for me (the one I use) is this one

Related