allen-cell-animated / volume-viewer

https://allen-cell-animated.github.io/volume-viewer/
Other
90 stars 7 forks source link

tweakpane leaks memory #143

Closed toloudis closed 5 months ago

toloudis commented 11 months ago

Description

Run a time series playthrough in the test viewer. In Chrome devtools memory profiler you can see heap allocations every time new volume data is swapped in. The retained objects are nearly all from tweakpane.

Expected Behavior

Playing through time series should not cause the js heap graph to rise.

Possible workaround: do we even need to rebuild the tweakpane every time data arrives? Best solution would be to be able to properly clean up the tweakpane, or understand why we can not.