Parcourir la source

UI: Use dedicated GPU on Hybrid AMD GPU systems

This enables use of the dedicated GPUs for AMD PowerXpress systems.
Especially important for Adapter selection, as usually the dedicated GPU
is hidden/inactive until needed.

Closes jp9000/obs-studio#706
Michael Fabian Dirks il y a 9 ans
Parent
commit
db7632e7fd
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      UI/obs-app.cpp

+ 5 - 0
UI/obs-app.cpp

@@ -67,6 +67,11 @@ string opt_starting_collection;
 string opt_starting_profile;
 string opt_starting_scene;
 
+// AMD PowerXpress High Performance Flags
+#ifdef _MSC_VER
+extern "C" __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
+#endif
+
 QObject *CreateShortcutFilter()
 {
 	return new OBSEventFilter([](QObject *obj, QEvent *event)