Programmatically selecting integrated graphics in nVidia Optimus

和自甴很熟 提交于 2021-02-07 11:21:31

问题


There are many questions and answers about how to select nVidia discrete adapter on runtime on Windows platform. The easiest way is to export a NvOptimusEnablement variable like this:

extern "C" _declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;

I have the opposite requirement. I need to set the Integrated graphics in runtime for my application, no matter what is the Preferred graphic processor in NVIDIA control panel. This variable is not suitable for this. How can I make this?


回答1:


The code under sop - setoptimusprofile registers an application profile so the driver automatically selects the discrete card for the specified application, maybe you can change it so that it uses the integrated one?



来源:https://stackoverflow.com/questions/24878271/programmatically-selecting-integrated-graphics-in-nvidia-optimus

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!