diff --git a/code/ryzom/client/src/client.cpp b/code/ryzom/client/src/client.cpp index 82044e0e1..1ec2b0643 100644 --- a/code/ryzom/client/src/client.cpp +++ b/code/ryzom/client/src/client.cpp @@ -121,6 +121,12 @@ static void sigHandler(int Sig) //--------------------------------------------------- #ifdef NL_OS_WINDOWS +// enable optimus for NVIDIA cards +extern "C" +{ + _declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001; +} + void pump () { // Display the window