From a340260e4095614744a211b9f2aa60bf3075b818 Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 9 Nov 2015 09:55:38 +0100 Subject: [PATCH] Fixed: Force use of NVIDIA GPU if Optimus is present --HG-- branch : develop --- code/ryzom/client/src/client.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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