azesmway / react-native-unity

MIT License
257 stars 61 forks source link

RN High Memory Usage Post Unmount method #75

Open TruAmbition opened 1 year ago

TruAmbition commented 1 year ago

Hello @azesmway

Thank you for your hard work and efforts in putting this component project together. I've been able to experienment with a Unity Project increasing in size and I noticed that as my Unity project gets beefier, so does the Unity Runtime Memory usage even with the view unmounted (After mounting once).

What I'm curious to know is, have you considering adding a killSwitch to the entire Unity session? So For heavier builds we can decide to unload, or unloadUnityCompletley in order for those interested to have the option in handling memory a bit better in between scenes.

Please let me know your thoughts.

Cheers!

carlandren2002 commented 6 months ago

Any update on this? When navigating away from Unity the RAM usage is still +500mb than what it is before loading Unity