diff --git a/src/citra/citra.cpp b/src/citra/citra.cpp index 2c9d58646..5635b6ddd 100644 --- a/src/citra/citra.cpp +++ b/src/citra/citra.cpp @@ -42,6 +42,7 @@ #ifdef _WIN32 extern "C" { +// tells Nvidia drivers to use the dedicated GPU by default on laptops with switchable graphics __declspec(dllexport) unsigned long NvOptimusEnablement = 0x00000001; } #endif diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index 8b251994f..1c5047963 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -56,6 +56,7 @@ Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin); #ifdef _WIN32 extern "C" { +// tells Nvidia drivers to use the dedicated GPU by default on laptops with switchable graphics __declspec(dllexport) unsigned long NvOptimusEnablement = 0x00000001; } #endif