From 4ad92309305b73727d1cc2418363059885593ea3 Mon Sep 17 00:00:00 2001 From: N00byKing Date: Fri, 23 Mar 2018 19:01:38 +0100 Subject: [PATCH] Force dedicated AMD Card for switchable Graphics --- src/yuzu/main.cpp | 3 ++- src/yuzu_cmd/yuzu.cpp | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index dc57e2e966..579730f064 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -43,8 +43,9 @@ Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin); #ifdef _WIN32 extern "C" { -// tells Nvidia drivers to use the dedicated GPU by default on laptops with switchable graphics +// 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 diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index d8361d2c35..1b50bf5006 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp @@ -39,12 +39,12 @@ #ifdef _WIN32 extern "C" { -// tells Nvidia drivers to use the dedicated GPU by default on laptops with switchable graphics +// 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] \n"