(0347b34f5) Reduce server CPU usage

This commit is contained in:
Joonas Rikkonen
2019-06-11 21:43:45 +03:00
parent b294aee91e
commit 128473b952

View File

@@ -167,7 +167,8 @@ namespace Barotrauma
RewriteInputToCommandLine(input);
}
Thread.Yield();
//TODO: be more clever about it
Thread.Sleep(10); //sleep for 10ms to not pin the CPU super hard
}
}
catch (ThreadAbortException)