From 352756ec6de69fda939148e6564c8cb1d4bda201 Mon Sep 17 00:00:00 2001 From: RedBlackAka <140876408+RedBlackAka@users.noreply.github.com> Date: Wed, 7 Jan 2026 11:54:55 +0100 Subject: [PATCH] Windows: Set process priority to above normal --- src/citra_qt/citra_qt.cpp | 4 ++++ src/citra_sdl/citra_sdl.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/citra_qt/citra_qt.cpp b/src/citra_qt/citra_qt.cpp index 6398d1f22..c578ed0bc 100644 --- a/src/citra_qt/citra_qt.cpp +++ b/src/citra_qt/citra_qt.cpp @@ -319,6 +319,10 @@ GMainWindow::GMainWindow(Core::System& system_) } } +#ifdef _WIN32 + SetPriorityClass(GetCurrentProcess(), ABOVE_NORMAL_PRIORITY_CLASS); +#endif + #ifdef __unix__ SetGamemodeEnabled(Settings::values.enable_gamemode.GetValue()); #endif diff --git a/src/citra_sdl/citra_sdl.cpp b/src/citra_sdl/citra_sdl.cpp index 48009a5a2..5edbd2303 100644 --- a/src/citra_sdl/citra_sdl.cpp +++ b/src/citra_sdl/citra_sdl.cpp @@ -465,6 +465,10 @@ void LaunchSdlFrontend(int argc, char** argv) { } } +#ifdef _WIN32 + SetPriorityClass(GetCurrentProcess(), ABOVE_NORMAL_PRIORITY_CLASS); +#endif + #ifdef __unix__ Common::Linux::StartGamemode(); #endif