Browse Source

Make sure the high-power AMD GPU is used on Windows laptops with switchable Intel+AMD GPUs.

Alex Szpakowski 9 years ago
parent
commit
518f91b53a
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/love.cpp

+ 5 - 1
src/love.cpp

@@ -59,7 +59,11 @@ extern "C"
 // http://developer.download.nvidia.com/devzone/devcenter/gamegraphics/files/OptimusRenderingPolicies.pdf
 // http://developer.download.nvidia.com/devzone/devcenter/gamegraphics/files/OptimusRenderingPolicies.pdf
 // TODO: Re-evaluate in the future when the average integrated GPU in Optimus
 // TODO: Re-evaluate in the future when the average integrated GPU in Optimus
 // systems is less mediocre?
 // systems is less mediocre?
-LOVE_EXPORT DWORD NvOptimusEnablement = 0x00000001;
+LOVE_EXPORT DWORD NvOptimusEnablement = 1;
+
+// Same with AMD GPUs.
+// https://community.amd.com/thread/169965
+LOVE_EXPORT DWORD AmdPowerXpressRequestHighPerformance = 1;
 }
 }
 #endif // LOVE_WINDOWS
 #endif // LOVE_WINDOWS