From 443f98d2fa35d7ee1fe0bc568d377f239bfaea0e Mon Sep 17 00:00:00 2001 From: Geoffrey McRae <geoff@hostfission.com> Date: Thu, 6 Jan 2022 18:41:48 +1100 Subject: [PATCH] [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. --- host/platform/Windows/src/platform.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/host/platform/Windows/src/platform.c b/host/platform/Windows/src/platform.c index 07e86465..9023ca99 100644 --- a/host/platform/Windows/src/platform.c +++ b/host/platform/Windows/src/platform.c @@ -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)