From 08ffe1d44da2ef22d08a3464ae9ff4e13d998c9e Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Wed, 18 Aug 2010 23:57:18 +1200 Subject: [PATCH] Reload chrome images only on mod change --- OpenRA.Game/Game.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Game/Game.cs b/OpenRA.Game/Game.cs index d742c1aaf1..d1a5195c54 100644 --- a/OpenRA.Game/Game.cs +++ b/OpenRA.Game/Game.cs @@ -119,6 +119,7 @@ namespace OpenRA SheetBuilder.Initialize(); LoadModPackages(); Timer.Time("load assemblies, packages: {0}"); + ChromeProvider.Initialize(Manifest.Chrome); packageChangePending = false; } @@ -138,8 +139,7 @@ namespace OpenRA viewport = new Viewport(clientSize, map.TopLeft, map.BottomRight, Renderer); world = null; // trying to access the old world will NRE, rather than silently doing it wrong. - ChromeProvider.Initialize(Manifest.Chrome); - Timer.Time("viewport, ChromeProvider: {0}"); + Timer.Time("viewport: {0}"); world = new World(Manifest, map); Timer.Time("world: {0}");