From: Gijs de Rooy Date: Mon, 15 Jul 2013 19:47:14 +0000 (+0200) Subject: Suggest NVIDIA Optimus to use the high-end GPU. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=78507bf22eabe69e2e1eabb0503f4427cc298a92;p=flightgear.git Suggest NVIDIA Optimus to use the high-end GPU. --- 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() {