split tick/render frame counters

This commit is contained in:
Chris Forbes
2009-11-04 20:20:54 +13:00
parent bb144db787
commit e8bbf051f9
2 changed files with 3 additions and 1 deletions

View File

@@ -137,6 +137,7 @@ namespace OpenRa.Game
}
static int oreTicks = 20;
public static int RenderFrame = 0;
public static void Tick()
{
@@ -163,6 +164,7 @@ namespace OpenRa.Game
}
}
++RenderFrame;
viewport.cursor = controller.ChooseCursor();
viewport.DrawRegions();
}

View File

@@ -99,7 +99,7 @@ namespace OpenRa.Game.Graphics
lineRenderer.Flush();
renderer.DrawText(string.Format("Frame {0}", Game.orderManager.FrameNumber), new int2(5, 5), Color.White);
renderer.DrawText(string.Format("RenderFrame {0} Tick {1}", Game.RenderFrame, Game.orderManager.FrameNumber), new int2(5, 5), Color.White);
}
const float conditionYellow = 0.5f; /* todo: get these from gamerules */