Preload sequences and fix #5382

This commit is contained in:
Pavlos Touboulidis
2014-05-21 22:56:59 +03:00
parent df0d1360dd
commit 531338a955
3 changed files with 41 additions and 8 deletions

View File

@@ -134,8 +134,10 @@ namespace OpenRA
// Mount map package so custom assets can be used. TODO: check priority.
GlobalFileSystem.Mount(GlobalFileSystem.OpenPackage(map.Path, null, int.MaxValue));
using (new Support.PerfTimer("Map.LoadRules"))
using (new Support.PerfTimer("Map.PreloadRules"))
map.PreloadRules();
using (new Support.PerfTimer("Map.SequenceProvider.Preload"))
map.SequenceProvider.Preload();
VoxelProvider.Initialize(Manifest.VoxelSequences, map.VoxelSequenceDefinitions);