mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-11 01:48:09 +00:00
[idd] updated to a VS2022 project with Windows 10 support
This commit is contained in:
@@ -60,6 +60,20 @@ void CSwapChainProcessor::SwapChainThreadCore()
|
||||
return;
|
||||
}
|
||||
|
||||
if (IDD_IS_FUNCTION_AVAILABLE(IddCxSetRealtimeGPUPriority))
|
||||
{
|
||||
DBGPRINT("Using IddCxSetRealtimeGPUPriority");
|
||||
IDARG_IN_SETREALTIMEGPUPRIORITY arg;
|
||||
arg.pDevice = dxgiDevice.Get();
|
||||
if (FAILED(IddCxSetRealtimeGPUPriority(m_hSwapChain, &arg)))
|
||||
DBGPRINT("Failed to set realtime GPU thread priority");
|
||||
}
|
||||
else
|
||||
{
|
||||
DBGPRINT("Using SetGPUThreadPriority");
|
||||
dxgiDevice->SetGPUThreadPriority(7);
|
||||
}
|
||||
|
||||
IDARG_IN_SWAPCHAINSETDEVICE setDevice = {};
|
||||
setDevice.pDevice = dxgiDevice.Get();
|
||||
|
||||
@@ -69,7 +83,7 @@ void CSwapChainProcessor::SwapChainThreadCore()
|
||||
|
||||
if (FAILED(hr))
|
||||
{
|
||||
DBGPRINT("IddCxSwapChainSetDevice Failed");
|
||||
DBGPRINT("IddCxSwapChainSetDevice Failed (%08x)", hr);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user