Volumetrics-io/mrjs

`MREntity`: Garbage Collect geometries and Materials in `disconnectedCallback()`

michaelthatsit opened this issue · 0 comments

Notice in sol-garden. @lobau is creating new maps on the fly, but the old ones stay in memory causing a perf hit.

If we add disconnectedCallback() to MREntity and have it traverse it's object hierarchy and dispose all materials and geometries, it should resolve the issue