软件自动选择独显

软件自动选择独显

用法:在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; }

posted @ 2020-12-02 17:39  echohelper  阅读(206)  评论(0)    收藏  举报