qt: Fix high CPU usage when paused

This commit is contained in:
Cacodemon345
2022-02-20 15:04:24 +06:00
committed by GitHub
parent 7928bc8c1c
commit be900f1d32

View File

@@ -114,7 +114,7 @@ main_thread_fn()
}
} else {
/* Just so we dont overload the host OS. */
if (drawits < -1)
if (drawits < -1 || dopause)
std::this_thread::sleep_for(std::chrono::milliseconds(1));
else
std::this_thread::yield();