split tick/render frame counters
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user