From 4bbd02fb2ddabec4aaebf120aed8ae3804b6f9ca Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 19 Oct 2025 17:31:33 -0500 Subject: [PATCH] Reduce the priority of background polling threads --- app/backend/computermanager.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/backend/computermanager.cpp b/app/backend/computermanager.cpp index f46cda29..7f1991fc 100644 --- a/app/backend/computermanager.cpp +++ b/app/backend/computermanager.cpp @@ -74,6 +74,13 @@ private: void run() override { + // Reduce the power and performance impact of our + // computer status polling while it's running. + setPriority(QThread::LowPriority); +#if QT_VERSION >= QT_VERSION_CHECK(6, 9, 0) + setServiceLevel(QThread::QualityOfService::Eco); +#endif + // Always fetch the applist the first time int pollsSinceLastAppListFetch = POLLS_PER_APPLIST_FETCH; while (!isInterruptionRequested()) {