Hidden debug parameter for perf tick logging

This commit is contained in:
Paul Chote
2010-09-17 22:28:57 +12:00
committed by Chris Forbes
parent 22861fca5a
commit 0d2e1d7de5
3 changed files with 4 additions and 3 deletions

View File

@@ -79,7 +79,7 @@ namespace OpenRA
var sw = new Stopwatch();
currentActivity = a.Tick(this) ?? new Idle();
var dt = sw.ElapsedTime();
if( dt > 0.001 )
if(dt > Game.Settings.Debug.LongTickThreshold)
Log.Write("perf", "[{2}] Activity: {0} ({1:0.000} ms)", a, dt * 1000, Game.LocalTick);
if (a == currentActivity) break;