diff --git a/OpenRA.FileFormats/Support/Timer.cs b/OpenRA.FileFormats/Support/Timer.cs index 6c4a146ae2..8b428a60be 100755 --- a/OpenRA.FileFormats/Support/Timer.cs +++ b/OpenRA.FileFormats/Support/Timer.cs @@ -30,7 +30,7 @@ namespace OpenRA.Support var time = sw.ElapsedTime(); var dt = time - lastTime; if( dt > 0.0001 ) - Log.Write("debug", message, dt ); + Log.Write("perf", message, dt ); lastTime = time; } } diff --git a/OpenRA.Game/Exts.cs b/OpenRA.Game/Exts.cs index 24f6d270e6..7abb2d3b6c 100644 --- a/OpenRA.Game/Exts.cs +++ b/OpenRA.Game/Exts.cs @@ -104,7 +104,7 @@ namespace OpenRA a( x ); var dt = sw.ElapsedTime() - t; if( dt > time ) - Log.Write("debug", text, x, dt * 1000); + Log.Write("perf", text, x, dt * 1000); } ); } } diff --git a/OpenRA.Game/Support/Program.cs b/OpenRA.Game/Support/Program.cs index 8292b6a263..5353520894 100644 --- a/OpenRA.Game/Support/Program.cs +++ b/OpenRA.Game/Support/Program.cs @@ -35,6 +35,7 @@ namespace OpenRA { // brutal hack Application.CurrentCulture = CultureInfo.InvariantCulture; + Log.AddChannel("perf", "openra.perf.txt", false, false); if (Debugger.IsAttached) {