(e42047dc1) Tester's build, January 30th 2020

This commit is contained in:
Juan Pablo Arce
2020-01-30 15:56:31 -03:00
parent eaa18a20a3
commit 15499cb704
203 changed files with 8274 additions and 4950 deletions
@@ -347,6 +347,7 @@ namespace Barotrauma
Timing.Accumulator -= Timing.Step;
}
#if !DEBUG
if (Server?.OwnerConnection == null && !Console.IsOutputRedirected)
{
DebugConsole.UpdateCommandLine((int)(Timing.Accumulator * 800));
@@ -355,6 +356,9 @@ namespace Barotrauma
{
DebugConsole.Clear();
}
#else
DebugConsole.UpdateCommandLine((int)(Timing.Accumulator * 800));
#endif
int frameTime = (int)(((double)(stopwatch.ElapsedTicks - prevTicks) / frequency) * 1000.0);
frameTime = Math.Max(0, frameTime);