Precise, time period-independent timing for Windows game loop.

This commit is contained in:
Pieter-Jan Briers
2023-07-15 15:22:52 +02:00
parent d7ee2bccd7
commit c392d4f996
8 changed files with 180 additions and 10 deletions
+6 -1
View File
@@ -510,7 +510,12 @@ namespace Robust.Server
{
if (_mainLoop == null)
{
_mainLoop = new GameLoop(_time, _runtimeLog, _prof, _log.GetSawmill("eng"))
_mainLoop = new GameLoop(
_time,
_runtimeLog,
_prof,
_log.GetSawmill("eng"),
GameLoopOptions.FromCVars(_config))
{
SleepMode = SleepMode.Delay,
DetectSoftLock = true,