This commit is contained in:
RedBlackAka 2026-01-29 22:26:17 +09:00 committed by GitHub
commit 52bf07bf19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -329,6 +329,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

@ -463,6 +463,10 @@ int LaunchSdlFrontend(int argc, char** argv) {
}
}
#ifdef _WIN32
SetPriorityClass(GetCurrentProcess(), ABOVE_NORMAL_PRIORITY_CLASS);
#endif
#ifdef __unix__
Common::Linux::StartGamemode();
#endif