mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
fix
This commit is contained in:
parent
008e11b4b7
commit
3c6ca01df8
1 changed files with 2 additions and 1 deletions
|
|
@ -41,6 +41,7 @@ void ServerMainloop::run() {
|
||||||
double delta = targetDelta;
|
double delta = targetDelta;
|
||||||
auto begin = system_clock::now();
|
auto begin = system_clock::now();
|
||||||
auto startupTime = begin;
|
auto startupTime = begin;
|
||||||
|
|
||||||
while (process->isActive()) {
|
while (process->isActive()) {
|
||||||
if (engine.isQuitSignal()) {
|
if (engine.isQuitSignal()) {
|
||||||
process->terminate();
|
process->terminate();
|
||||||
|
|
@ -65,7 +66,7 @@ void ServerMainloop::run() {
|
||||||
auto end = system_clock::now();
|
auto end = system_clock::now();
|
||||||
platform::sleep(targetDelta * 1000 -
|
platform::sleep(targetDelta * 1000 -
|
||||||
duration_cast<microseconds>(end - begin).count() / 1000);
|
duration_cast<microseconds>(end - begin).count() / 1000);
|
||||||
begin = end;
|
begin = system_clock::now();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
logger.info() << "test finished";
|
logger.info() << "test finished";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue