Do not keep map pakages loaded on Game start to reduce memory impact
This commit is contained in:
@@ -153,6 +153,9 @@ namespace OpenRA
|
||||
var uid = Map.ComputeUID(mapPackage);
|
||||
previews[uid].UpdateFromMap(mapPackage, package, classification, modData.Manifest.MapCompatibility, mapGrid.Type, modDataRules);
|
||||
|
||||
// Freeing the package to save memory if there is a lot of Maps
|
||||
previews[uid].DisposePackage();
|
||||
|
||||
if (oldMap != uid)
|
||||
{
|
||||
LastModifiedMap = uid;
|
||||
|
||||
Reference in New Issue
Block a user