We are currently working on a single page app where users can switch between multiple Three.js apps. However, we have observed a continuous increase in memory usage by the tab. There is no memory leakage in our app and it appears that Three.js variables are not being cleared from RAM.
Steps to Reproduce:
- Visit and open the Task Manager in Google Chrome to monitor the memory usage of the tab.
- Switch between examples and you will notice a gradual increase in memory usage. It seems like garbage collection never occurs or is unable to release previously allocated memory blocks.
- On my laptop with the following configuration: , memory usage easily surpasses 1GB when everything starts to freeze.
I have come across 2 bug reports filed on Chromium and Firefox regarding this memory issue, but no solution has been provided yet.
Please assist me in releasing memory as most of the solutions found online have not been helpful.
PS: I have also reported a bug on Three.js GitHub repository here: https://github.com/mrdoob/three.js/issues/4276