Преглед изворни кода

UI: Use NVIDIA laptop GPU hint

Changes the default "preferred" GPU to the NVIDIA GPU when running the
program on NVIDIA laptops.
jp9000 пре 7 година
родитељ
комит
c7a2a674bc
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      UI/obs-app.cpp

+ 2 - 1
UI/obs-app.cpp

@@ -78,8 +78,9 @@ string opt_starting_collection;
 string opt_starting_profile;
 string opt_starting_scene;
 
-// AMD PowerXpress High Performance Flags
+// GPU hint exports for AMD/NVIDIA laptops
 #ifdef _MSC_VER
+extern "C" __declspec(dllexport) DWORD NvOptimusEnablement = 1;
 extern "C" __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
 #endif