diff --git a/DVServerUMD/DVServer/Driver.cpp b/DVServerUMD/DVServer/Driver.cpp index 1e0ca04..fdf6f73 100644 --- a/DVServerUMD/DVServer/Driver.cpp +++ b/DVServerUMD/DVServer/Driver.cpp @@ -732,6 +732,16 @@ void SwapChainProcessor::RunCore() return; } + if (IDD_IS_FUNCTION_AVAILABLE(IddCxSetRealtimeGPUPriority)) + { + IDARG_IN_SETREALTIMEGPUPRIORITY SetPriority = {}; + SetPriority.pDevice = DxgiDevice.Get(); + hr = IddCxSetRealtimeGPUPriority(m_hSwapChain, &SetPriority); + if (FAILED(hr)) { + ERR("IddCxSetRealtimeGPUPriority failed\n"); + } + } + IDARG_IN_SWAPCHAINSETDEVICE SetDevice = {}; SetDevice.pDevice = DxgiDevice.Get();