Merge branch 'master' into setcap-p

This commit is contained in:
Loki
2021-09-04 18:30:29 +02:00
4 changed files with 42 additions and 12 deletions

View File

@@ -673,6 +673,7 @@ public:
std::this_thread::sleep_for((next_frame - now) / 3 * 2);
}
while(next_frame > now) {
std::this_thread::sleep_for(1ns);
now = std::chrono::steady_clock::now();
}
next_frame = now + delay;
@@ -793,6 +794,7 @@ public:
std::this_thread::sleep_for((next_frame - now) / 3 * 2);
}
while(next_frame > now) {
std::this_thread::sleep_for(1ns);
now = std::chrono::steady_clock::now();
}
next_frame = now + delay;