add a benchmark mode

This commit is contained in:
Matthias Mailänder
2015-11-28 13:49:11 +01:00
parent 7335c4a8ce
commit d4e842e643
3 changed files with 25 additions and 0 deletions

View File

@@ -21,6 +21,9 @@ namespace OpenRA
[Desc("Automatically start playing the given replay file.")]
public string Replay;
[Desc("Dump performance data into cpu.csv and render.csv in the logs folder.")]
public bool Benchmark;
public LaunchArguments(Arguments args)
{
if (args == null)