diff --git a/RLBotCS/Main.cs b/RLBotCS/Main.cs index 46c2765..88cbef7 100644 --- a/RLBotCS/Main.cs +++ b/RLBotCS/Main.cs @@ -10,7 +10,7 @@ if (args.Length > 0 && args[0] == "--version") { Console.WriteLine( - "RLBotServer v5.beta.7.7\n" + "RLBotServer v5.beta.7.8\n" + $"Bridge {BridgeVersion.Version}\n" + "@ https://www.rlbot.org & https://github.com/RLBot/core" ); diff --git a/RLBotCS/Server/BridgeHandler.cs b/RLBotCS/Server/BridgeHandler.cs index 8260b52..c69ad31 100644 --- a/RLBotCS/Server/BridgeHandler.cs +++ b/RLBotCS/Server/BridgeHandler.cs @@ -88,13 +88,12 @@ private async Task HandleServer() float deltaTime = _context.GameState.SecondsElapsed - prevTime; bool timeAdvanced = deltaTime > 0.001; if (timeAdvanced) - { _context.ticksSkipped = 0; - _context.ticksSinceMapLoad += 1; - } else _context.ticksSkipped++; + _context.ticksSinceMapLoad += 1; + if (timeAdvanced) _context.PerfMonitor.AddRLBotSample(deltaTime);