(0347b34f5) Reduce server CPU usage
This commit is contained in:
@@ -167,7 +167,8 @@ namespace Barotrauma
|
|||||||
RewriteInputToCommandLine(input);
|
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)
|
catch (ThreadAbortException)
|
||||||
|
|||||||
Reference in New Issue
Block a user