Runaway Resources

Hi, I am running 2018.3 and SteamVR and I am having an issue with memory and CPU consumption. While playing my game, it runs pretty smooth. About 9% CPU and 1.2GB RAM. However, when I stop the editor or close the PC build, the RAM consumption triples and the CPU spikes. If I do not kill the game or Unity, the PC all other programs hang and the PC will eventually crash.

This is my first game so perhaps I am not following a best practice or maybe I am hitting a bug with Unity itself and should downgrade to a more stable version.

Any suggestions on diagnosing something like this? Thank you.

Hi,

I would try to use profiler and take detailed memory snapshot to see if there is game/engine memory usage growing -
Unity - Manual: Memory Profiler module . It might give some hints and point out to subsystem or resource.

I’m cautiously optimistic. I updated Unity to 2018.6 today and so far, memory usage is reasonable and flat. Thanks for your help.