From be900f1d32b3dee90a85db69dc42562bc71b6e51 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Sun, 20 Feb 2022 15:04:24 +0600 Subject: [PATCH] qt: Fix high CPU usage when paused --- src/qt/qt_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt/qt_main.cpp b/src/qt/qt_main.cpp index cae6c6e5c..a1be6d565 100644 --- a/src/qt/qt_main.cpp +++ b/src/qt/qt_main.cpp @@ -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();