fixing crap perf while viewing the lobby.

This commit is contained in:
Bob
2010-01-18 03:27:37 +13:00
parent fd6d2a1f99
commit efda804a41
2 changed files with 11 additions and 8 deletions

View File

@@ -48,8 +48,15 @@ namespace OpenRa.Graphics
renderer.BeginFrame(r1, r2, scrollPosition);
Game.world.WorldRenderer.Draw();
Game.chrome.Draw();
if( Game.orderManager.GameStarted )
{
Game.world.WorldRenderer.Draw();
Game.chrome.Draw();
}
else
{
Game.chrome.DrawLobby();
}
var c = Game.chrome.HitTest(mousePos) ? Cursor.Default : Game.controller.ChooseCursor();
cursorRenderer.DrawSprite(c.GetSprite((int)cursorFrame), mousePos + Location - c.GetHotspot(), 0);