Editor eating up memory

First post, sorry if I don’t have this in the right spot.

I’ve been using Unity for ~3 years at this point, however within the last 6 months or so I’ve run across an issue with my project using up all my memory. I’ve got 48GB of ram in my pc and my Unity editor seems to be using almost all of it.

I had this issue on a larger project before, and assumed that the size of the project caused the issue, however I created a new project about a week ago and after doing some basic level creation the usage issue has come up again.

The screenshot above is from a project that I JUST opened. Haven’t done anything aside from opening the project up. The usage will shoot up as I work up until it’s unusable and I have to restart the project.

I’m using 2022.3.37f1 (I believe it is a LTS version) and I switched from a previous version of Unity a couple months ago thinking it may have been a memory leak.

Unity is listed as an exception in my Antivirus software so it isn’t being messed with by that as far as I know.

I have a semi-slow HDD but that didn’t cause issues in the past / hasn’t affected anything else on my PC like this has.

Any help would be great! I’ve looked up and down the forums for an issue since this first started but haven’t found anything that worked.

EDIT: In case I hadn’t clarified - this is an issue in the editor, not just play mode. Play mode definitely speeds up how fast the memory usage goes up though

Try the memory profiler:

https://docs.unity3d.com/Packages/com.unity.memoryprofiler@1.1/manual/index.html

2 Likes

Thanks! Turns out the issue was the textures, and they were completely eating up my memory.

So now I just run the project on Low settings in Project settings & keep the Global Mipmap limit to quarter resolution / eighth resolution and I have no more issues with this.

It still takes up about 10gb memory but the editor runs perfectly fine now, since before it was trying to use more than what was allocated to the editor.

Textures are always the usual suspects, then models and animations. You should crunch-compress them and disable their isReadable setting. Here are some tips to improve the editor performance:

1 Like