public override void OnAfterSimulationFrame() { try { routeMan.SimulationStep(); } catch (Exception e) { Log.Error($"Error occured while performing first update: " + e.ToString()); } ++ticksSinceLastMinuteUpdate; if (ticksSinceLastMinuteUpdate > 60 * 60) { ticksSinceLastMinuteUpdate = 0; GlobalConfig.Instance.SimulationStep(); #if DEBUG DebugMenuPanel.PrintTransportStats(); #endif } ++ticksSinceLastSecondUpdate; if (ticksSinceLastSecondUpdate > 60) { ticksSinceLastSecondUpdate = 0; utilMan.SimulationStep(); } }