Make perf.log output for ticking things opt-in
Both writing to perf.log frequently as well as GetTimestamp aren't free and hurt performance particularly on slower systems (which can have notably higher output to perf.log, further amplifying the problem). Therefore we make simulation perf logging opt-in. Additionally, logging of the current tick and tick type (local/net) is removed from debug.log, and some remnant debug logging for kills and pips is removed to keep performance-sensitive logging limited to perf.log.
This commit is contained in:
@@ -132,6 +132,9 @@ namespace OpenRA
|
||||
[Desc("Enable the chat field during replays to allow use of console commands.")]
|
||||
public bool EnableDebugCommandsInReplays = false;
|
||||
|
||||
[Desc("Enable perf.log output for traits, activities and effects.")]
|
||||
public bool EnableSimulationPerfLogging = false;
|
||||
|
||||
[Desc("Amount of time required for triggering perf.log output.")]
|
||||
public float LongTickThresholdMs = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user