Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Data structures are not garbage collected on dispose #15972
Description of the problem
I am experiencing problems on correctly disposing a scene and all the associated data structures.
In my test I followed these steps (using Chrome devtools):
RESULT (comparison between snapshot 3 and snapshot 1):
As you can see most of the three.js data structures are kept in memory and not garbage collected.
All the three.js data structures should be garbage collected, giving a memory state comparable to the initial state.
This is the live plunker:
Hardware Requirements (graphics card, VR Device, ...)
The main issue was that the test program of the OP had multiple