#include // http://developer.download.nvidia.com/devzone/devcenter/gamegraphics/files/OptimusRenderingPolicies.pdf // The following line is to favor the high performance NVIDIA GPU if there are multiple GPUs // Has to be .exe module to be correctly detected. extern __declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001; // And the AMD equivalent // Also has to be .exe module to be correctly detected. extern __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 0x00000001;