Merge branch 'main' into update-file-subsystem

This commit is contained in:
MihailRis
2025-01-31 08:55:39 +03:00
3 changed files with 63 additions and 31 deletions
+5 -2
View File
@@ -67,8 +67,11 @@ void ServerMainloop::run() {
if (!coreParams.testMode) {
auto end = system_clock::now();
platform::sleep(targetDelta * 1000 -
duration_cast<microseconds>(end - begin).count() / 1000);
int64_t millis = targetDelta * 1000 -
duration_cast<microseconds>(end - begin).count() / 1000;
if (millis > 0) {
platform::sleep(millis);
}
begin = system_clock::now();
}
}