Unity 2018.1 is taking up third of my memory, causing the editor to lag.

Hello, i have a big problem with my editor.

When i start up the editor, there is no lag at all. But after a while it starts taking up almost a third of my PC’s memory and the editor slows down.

Is there any fix for this ? Any advice is welcome !

I believe the memory usage is related to the complexity of your project and scene complexity. An empty scene should require less memory than a scene with a gazillion objects.

It could also be a just an Unity editor bug, a bug of a 3rd party asset you have installed or a bug in your code.

Another option would be to get more memory. Unity requires easily a third of 2GB ram, but it takes more effort to make it consume a third of 32 GB.

However, this is just guessing. I recommend you fire up the Unity Profiler and/or MemoryProfiler and measure what exactly is causing Unity to require so much memory over time.

https://bitbucket.org/Unity-Technologies/memoryprofiler

I think it’s a bug, beacause it occurs randomly… sometimes it goes smooth, sometimes it lags. Even with a simple scene with no 3D objects at all.

Also, the lags are occuring only in Editor mode, not in the Playmode