[host] windows: opt into the Multimedia Class Schedule Service

This improves overall application performance as windows will give this
process higher priority for low latency multimedia tasks.
This commit is contained in:
Geoffrey McRae 2022-01-06 18:41:48 +11:00
parent 92f27cc0f0
commit 443f98d2fa

View file

@ -31,6 +31,7 @@
#include <wtsapi32.h>
#include <userenv.h>
#include <winternl.h>
#include <dwmapi.h>
#include "interface/platform.h"
#include "common/debug.h"
@ -477,6 +478,8 @@ void boostPriority(void)
DEBUG_INFO("To fix this, install and run the Looking Glass host as a service.");
DEBUG_INFO("looking-glass-host.exe InstallService");
}
DwmEnableMMCSS(true);
}
void CALLBACK exitEventCallback(PVOID opaque, BOOLEAN timedOut)