Windows: Set process priority to above normal

This commit is contained in:
RedBlackAka 2026-01-07 11:54:55 +01:00 committed by RedBlackAka
parent 3dd7103e62
commit 352756ec6d
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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