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"