PerfText now an option

This commit is contained in:
alzeih
2010-03-18 23:26:08 +13:00
parent b7087136cb
commit 4ca3f58f1c
2 changed files with 9 additions and 6 deletions

View File

@@ -174,6 +174,8 @@ namespace OpenRA
buttons.Clear();
renderer.Device.DisableScissor();
if (Game.Settings.PerfText)
renderer.RegularFont.DrawText( rgbaRenderer, "RenderFrame {0} ({2:F1} ms)\nTick {1} ({3:F1} ms)\n".F(
Game.RenderFrame,
Game.orderManager.FrameNumber,

View File

@@ -26,6 +26,7 @@ namespace OpenRA.GameRules
public readonly bool UnitDebug = false;
public readonly bool PathDebug = false;
public readonly bool PerfGraph = true;
public readonly bool PerfText = true;
// Window settings
public readonly int Width = 0;