Run GC more during loading.
This helps reduce the peak GC size by trimming temporary loading garbage a bit more often, rather than just doing it at the end of loading.
This commit is contained in:
committed by
Paul Chote
parent
a71a5cc71d
commit
471d7ae40d
@@ -170,9 +170,13 @@ namespace OpenRA
|
||||
|
||||
worldRenderer = new WorldRenderer(ModData, OrderManager.World);
|
||||
|
||||
GC.Collect();
|
||||
|
||||
using (new PerfTimer("LoadComplete"))
|
||||
OrderManager.World.LoadComplete(worldRenderer);
|
||||
|
||||
GC.Collect();
|
||||
|
||||
if (OrderManager.GameStarted)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user