Memory leak in simulation mode

When you play in simulation mode, memory usage will go up and up and up as you enter and quit the simulation mode.
At some point, after a few dozen times done entering and quitting simulation mode, the engine will start filling up the disk cache. This makes the engine take so much time to close! It’as almost impossible to get it closed without waiting hours while the cache is emptying. I’ve never tried to wait that long, I always have to restart the computer to free up the memory.

Try to create a new project, open the wndows task manager, and hit simulate a couple times. You’ll see how your memory will go up and never go down again.

Let me precise that this doesn’t happen in play mode, only in simulate mode.

Has anybody else noticed this issue?

Switch to SSD and problem will be solved.

Unreal caches everything in memory it’s right - but it’s for a reason.

It’s gives ability to undo thing you do.

  • Changes are not saved until you press save.

I have the same problem except after many PIE sessions… was talking about this with another dev recently… By now I’ve made it a habit to keep an eye on memory consumption and restarting the editor once it hits ~80%, after which I’ve noticed takes forever to quit out.
I’m hoping a proper migration of the project to the upcoming 4.24 will fix this for me… hoping.

Hi, I guess on the SSD the cache frees up more quickly, making the memory usage go down after each simulation?
Problemis, I can’t do that x) Not enough space on my SSD, Windows is like a growing beast that eat up the space everytime there’s an update (even though I delete the old version, kept for some reason).
I have to wait until I buy a new one.
Thanks for the tip.

I hope so as well!
As Przemek said, putting the cache path to an SSD it seams to fix the problem, are you on a HDD as well?