sceneview-android icon indicating copy to clipboard operation
sceneview-android copied to clipboard

When I remove a node, the memory is not released

Open thinhnd-nal opened this issue 1 year ago • 1 comments

I have some quite heavy models, each model adds around 300MB of memory when added to the scene view. When more than 10 models are added, the application starts reaching the onTrimMemory state. My task is to remove some of the initial models to free up memory. However, after calling arSceneView.removeChildNode(node), the memory usage remains unchanged. Memory is only fully released when I call recreate() to reload the activity, but this isn’t a good solution as all previous models will be lost. How can I free up the entire 300MB of memory for each ModelNode after I remove it?

thinhnd-nal avatar Aug 12 '24 02:08 thinhnd-nal