diff --git a/src/Main/main.cxx b/src/Main/main.cxx index ea94dd4cd..77893a013 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -273,6 +273,12 @@ static void ATIScreenSizeHack() globals->get_renderer()->addCamera(hackCam, false); } +// Propose NVIDIA Optimus to use high-end GPU +#if defined(SG_WINDOWS) +extern "C" { + _declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001; +} +#endif static void logToFile() {