From 0e1190a059c32e274dfd64acd0ff198e3b283bff Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 28 Mar 2024 21:06:15 -0500 Subject: [PATCH] Remove Optimus block for modern Nvidia drivers Now that we use D3D11 and don't fall back to D3D9, it should be safe to allow Optimus again. This will re-enable Optimus for D3D9 on Windows 8.1, but all of the reported problems were on Windows 10 so it will hopefully be a non-issue. Fixes #1241 --- AntiHooking/antihookingprotection.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/AntiHooking/antihookingprotection.cpp b/AntiHooking/antihookingprotection.cpp index 8953f8a1..856e94da 100644 --- a/AntiHooking/antihookingprotection.cpp +++ b/AntiHooking/antihookingprotection.cpp @@ -158,17 +158,6 @@ private: L"EZFRD32.dll", L"EZFRD64.dll", - // These are the newer dList DLLs for Optimus hybrid graphics DDI. - // https://docs.microsoft.com/en-us/windows-hardware/drivers/display/hybrid-system-ddi - // - // We forcefully block them from loading because Optimus has a bug that - // deadlocks DXVA2 when we present with D3DPRESENT_DONOTWAIT. This will prevent - // Optimus from ever using the dGPU even if the user has requested it. - // https://github.com/moonlight-stream/moonlight-qt/issues/240 - // https://github.com/moonlight-stream/moonlight-qt/issues/235 - L"nvdlist.dll", - L"nvdlistx.dll", - // These are the older dList/AppInit DLLs for Optimus hybrid graphics DDI. // https://docs.microsoft.com/en-us/windows-hardware/drivers/display/hybrid-system-ddi //