summaryrefslogtreecommitdiffstats
path: root/src/yuzu_cmd
diff options
context:
space:
mode:
authorN00byKing <N00byKing@users.noreply.github.com>2018-04-19 20:22:26 +0200
committerJames Rowe <jroweboy@gmail.com>2018-04-19 20:22:26 +0200
commit8a47e7e49361180498094ae5e41aa1f75958c025 (patch)
treee0640edd0182ba57322b98985ee9a6fcb1747b0b /src/yuzu_cmd
parentMerge pull request #352 from bunnei/fix-microprofile (diff)
downloadyuzu-8a47e7e49361180498094ae5e41aa1f75958c025.tar
yuzu-8a47e7e49361180498094ae5e41aa1f75958c025.tar.gz
yuzu-8a47e7e49361180498094ae5e41aa1f75958c025.tar.bz2
yuzu-8a47e7e49361180498094ae5e41aa1f75958c025.tar.lz
yuzu-8a47e7e49361180498094ae5e41aa1f75958c025.tar.xz
yuzu-8a47e7e49361180498094ae5e41aa1f75958c025.tar.zst
yuzu-8a47e7e49361180498094ae5e41aa1f75958c025.zip
Diffstat (limited to 'src/yuzu_cmd')
-rw-r--r--src/yuzu_cmd/yuzu.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp
index 261312f62..a91140447 100644
--- a/src/yuzu_cmd/yuzu.cpp
+++ b/src/yuzu_cmd/yuzu.cpp
@@ -37,6 +37,15 @@
#include "yuzu_cmd/config.h"
#include "yuzu_cmd/emu_window/emu_window_sdl2.h"
+#ifdef _WIN32
+extern "C" {
+// tells Nvidia and AMD drivers to use the dedicated GPU by default on laptops with switchable
+// graphics
+__declspec(dllexport) unsigned long NvOptimusEnablement = 0x00000001;
+__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
+}
+#endif
+
static void PrintHelp(const char* argv0) {
std::cout << "Usage: " << argv0
<< " [options] <filename>\n"