Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Define NvOptimusEnablement to tell the Nvidia driver we need high per…
…formance
  • Loading branch information
delroth committed Dec 25, 2012
1 parent ba348c2 commit b3ed3bd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Source/Core/DolphinWX/Src/Main.cpp
Expand Up @@ -45,6 +45,15 @@

#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

Expand Down

0 comments on commit b3ed3bd

Please sign in to comment.