软件自动选择独显
软件自动选择独显
用法:在exe程序中,导出其变量。
// 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 "C" { _declspec(dllexport) unsigned long NvOptimusEnablement = 0x00000001; }
// And the AMD equivalent
// Also has to be .exe module to be correctly detected.
extern "C" { _declspec(dllexport) unsigned long AmdPowerXpressRequestHighPerformance = 0x00000001; }

浙公网安备 33010602011771号