qt: Fix high CPU usage when paused
This commit is contained in:
@@ -114,7 +114,7 @@ main_thread_fn()
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* Just so we dont overload the host OS. */
|
/* Just so we dont overload the host OS. */
|
||||||
if (drawits < -1)
|
if (drawits < -1 || dopause)
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||||
else
|
else
|
||||||
std::this_thread::yield();
|
std::this_thread::yield();
|
||||||
|
Reference in New Issue
Block a user