mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Define NvOptimusEnablement to tell the Nvidia driver we need high performance
This commit is contained in:
@ -45,6 +45,15 @@
|
|||||||
|
|
||||||
#include <wx/intl.h>
|
#include <wx/intl.h>
|
||||||
|
|
||||||
|
// Nvidia drivers >= v302 will check if the application exports a global
|
||||||
|
// variable named NvOptimusEnablement to know if it should run the app in high
|
||||||
|
// performance graphics mode or using the IGP.
|
||||||
|
#ifdef WIN32
|
||||||
|
extern "C" {
|
||||||
|
__declspec(dllexport) DWORD NvOptimusEnablement = 1;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// ------------
|
// ------------
|
||||||
// Main window
|
// Main window
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user