[host] boost the priority to realtime (run as admin required)

This commit is contained in:
Geoffrey McRae 2017-12-18 17:18:11 +11:00
parent 8dec59f3ff
commit 9e75c7ab34

View File

@ -50,6 +50,7 @@ struct StartupArgs
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdParam, int iCmdShow) int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdParam, int iCmdShow)
{ {
CrashHandler::Initialize(); CrashHandler::Initialize();
SetPriorityClass(GetCurrentProcess(), REALTIME_PRIORITY_CLASS);
struct StartupArgs args; struct StartupArgs args;
args.foreground = false; args.foreground = false;