SceneView / sceneview-android

SceneView is a 3D and AR Android Composable and View with Google Filament and ARCore. This is a Sceneform replacement in Kotlin
Apache License 2.0
849 stars 161 forks source link

When I remove a node, the memory is not released #550

Closed thinhnd-nal closed 6 days ago

thinhnd-nal commented 3 months ago

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 commented 3 months ago

Here is a sample file: https://thinhnd-nal.github.io/sample_files/17_RKQ-A5325%2CRKS-098A.glb

github-actions[bot] commented 1 week ago

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 6 days ago

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.