GDelayTrimMemoryDuringMapLoadMode is a CVar that controls whether a garbage collection should take place during map change after unloading the previous map and before loading the new one. By default a GC pass always takes place. Other settings are available to skip the GC.
Skipping the GC is beneficial to load time if the two maps share dependencies - for example on the same assets. Otherwise, the GC can unload assets which then need to be loaded again as part of the next map.
However, when setting GDelayTrimMemoryDuringMapLoadMode to 2 (skip GC between map loads) and then reloading the same map, the engine will crash due to UObject path name collision. So when using that setting, currently you should explicitly avoid reloading the same map. This limitation is not documented.
I'm creating this task so that an engineer can evaluate:
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-203424 in the post.
1 |
Component | UE - Gameplay |
---|---|
Affects Versions | 5.0, 5.1, 5.2, 5.3 |
Created | Jan 8, 2024 |
---|---|
Updated | Jan 24, 2024 |