mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +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;
|
||||
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…
Add table
Add a link
Reference in a new issue