fix
This commit is contained in:
parent
008e11b4b7
commit
3c6ca01df8
@ -41,6 +41,7 @@ void ServerMainloop::run() {
|
||||
double delta = targetDelta;
|
||||
auto begin = system_clock::now();
|
||||
auto startupTime = begin;
|
||||
|
||||
while (process->isActive()) {
|
||||
if (engine.isQuitSignal()) {
|
||||
process->terminate();
|
||||
@ -65,7 +66,7 @@ void ServerMainloop::run() {
|
||||
auto end = system_clock::now();
|
||||
platform::sleep(targetDelta * 1000 -
|
||||
duration_cast<microseconds>(end - begin).count() / 1000);
|
||||
begin = end;
|
||||
begin = system_clock::now();
|
||||
}
|
||||
}
|
||||
logger.info() << "test finished";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user