UE 5.8 10X GC Purge Garbage Performance Regression from 5.7

Summary

Hi, i recently updated project from 5.7.2 to 5.8.1 and upon testing discovered the GC Purge Garbage pass taking at least 10x more time compared to 5.7.

I have then tested the same finding via two blank projects created in 5.7.2 and 5.8.1 to rule out project specific cause.

See attached screenshots from unreal insights and steps to reproduce

Thank you

What Type of Bug are you experiencing?

Framework

Steps to Reproduce

Can be reproduced by creating two blank BP projects.
One 5.7.2 and other 5.8.1:
For each:
Create simple BP actor with scene component and static mesh component.
Spawn considerable amount of actors, 100K in my case
Then force level teardown by transitioning to another level via open level node.
Test via editor PIE with profiler on
Test via packaged test build with profiler on
check results via profiler

Expected Result

Expected result should be identical or near identical performance for the GC phase.

Observed Result

At least 10X worse needed time to process GC phase

Affects Versions

5.8

Platform(s)

Windows

Upload an image

Have you found a solution to this issue?
We have a large game world and the unload time increased from 7 seconds to 68 seconds, e.g. when returning to the main menu.
This is a game-breaking issue.. Curious why nobody else is talking about it.

Same thing here. We are moving scenes from UE 5.3 to UE 5.8. The GC takes now 48 ms instead of 4ms in Unreal 5.3.

Just tested on 5.8.3 out of curiosity, the problem still persists. No solution yet, im quite far from releasing anything but if it comes to it as potential workaround in non editor builds i was considering time slicing destroying actors and forcing GC same frame just before i intend to unload current world. This would prevent the whole process from freezing for several seconds :slight_smile: and instead the player would have to stare at some kind of fade/ending screen. But i hope i will not have to resort to this.

UE-398681 is now ‘In Progress’! Our team is actively working on it!

@Mr.Vadam Could we get a sample project/logs so we can get a repro here? You can send DM if you prefer.

Thank you!

Hi, uploaded both sample projects to github repo as i do not have permissions to upload files yet as new member on epics bug forums:

See releases for samples.

Thanks

1 Like

Thank you so much!