mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-04-26 13:05:12 -06:00
Windows: Set process priority to above normal
This commit is contained in:
parent
3dd7103e62
commit
352756ec6d
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user