瀏覽代碼

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