Hello! I’m encountering an issue where memory isn’t being released properly, using version UE5.3. In an empty scene, I first added 3,000 cubes and monitored the system memory. Then, I deleted these 3,000 cubes and observed the system memory again, but the increased memory wasn’t freed. Our application continuously adds and removes objects in the scene. How can we resolve this memory leak issue?
Console Command: gc.CollectGarbageEveryFrame 1
Be very careful with GC.
Unreal’s Garbage Collection (GC) system triggers automatically approximately every minute. Simply dereference your objects, and they will be released automatically.
PS: “Dereference” means to clear the variables that point to the objects.