Why does my RAM usage keep increasing?
I created a blank project with a button that reloads the same scene. After quite a few clicks on the reload button the RAM usage steadily increases, and this is a fairly blank scene!
I am using Unity 2019.1.7f also have tried it on 2019.1.1f
Before: https://drive.google.com/open?id=1s6tDrzaZl1Mw9qV6C3yPnaQN1AQj_Dat
After: https://drive.google.com/open?id=1K1SjA6DuCm02JUsKUHJjlTUFUt0Z-IFD
Load Script: https://drive.google.com/open?id=1Nx7QRqbGtWfm-6-4hDydfiorJiiaVD-2
This is killing my main project right now and I'm not sure how to free up the usage without restarting unity.
Answer by cdauphin · Jul 01, 2019 at 02:42 PM
Hello,
Did you tried to unload scenes before loading a new one ?
Something like
SceneManager.UnloadSceneAsync(SceneManager.GetActiveScene());
SceneManager.LoadScene(scene);
Follow this Question
Related Questions
WebGl project memory usage 1 Answer
Run out of memory in build 1 Answer
Profiler Stops Updating on Change Level 0 Answers
Memory error pls help 0 Answers
What is the correct way to store circular references in Unity? 1 Answer