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:
RoosterDragon
2017-11-17 18:18:38 +00:00
committed by Paul Chote
parent a71a5cc71d
commit 471d7ae40d

View File

@@ -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;