From 9e75c7ab34947f59e1f5ebe1d743ac3b3c7feae1 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Mon, 18 Dec 2017 17:18:11 +1100 Subject: [PATCH] [host] boost the priority to realtime (run as admin required) --- host/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/host/main.cpp b/host/main.cpp index a87f2e69..105a8871 100644 --- a/host/main.cpp +++ b/host/main.cpp @@ -50,6 +50,7 @@ struct StartupArgs int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdParam, int iCmdShow) { CrashHandler::Initialize(); + SetPriorityClass(GetCurrentProcess(), REALTIME_PRIORITY_CLASS); struct StartupArgs args; args.foreground = false;