gpvigano / AsImpL

Asynchronous Importer and run-time Loader for Unity
MIT License
212 stars 37 forks source link

iOS memory Usage #50

Closed shyam-appymonkeys closed 2 years ago

shyam-appymonkeys commented 2 years ago

When importing objs during runtime on an iPad, the memory doesn't get cleared after the import is completed.

On the Unity Editor, the profiler says that the memory usage goes back down after the obj is done importing. This doesn't happen on the iPad. It just stays at a high value even after the import is done.

This is causing issues as if a user imports multiple large objects, the app crashes due to Out Of Memory.

gpvigano commented 2 years ago

I think this issue seems to be related to issue #43. Sorry, I don't know a solution right now, I hope some suggestion will come from the developer community.

gpvigano commented 2 years ago

In this commit I implemented a solution for memory leaks (see issue https://github.com/gpvigano/AsImpL/issues/43), please let me know if this works for you. Thanks.