在 nVidia Optimus 中以编程方式选择集成显卡 [英] Programmatically selecting integrated graphics in nVidia Optimus

查看:191
本文介绍了在 nVidia Optimus 中以编程方式选择集成显卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于如何在 Windows 平台上运行时选择 nVidia 离散适配器有很多问题和答案.最简单的方法是像这样导出一个 NvOptimusEnablement 变量:

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;

我有相反的要求.无论 NVIDIA 控制面板中的首选图形处理器是什么,我都需要在运行时为我的应用程序设置集成图形.这个变量不适合这个.我怎样才能做到这一点?

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?

推荐答案

sop - setoptimusprofile 下的代码注册一个应用程序配置文件,以便驱动程序自动为指定的应用程序选择独立卡,也许您可​​以更改它以使用集成卡?

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?

这篇关于在 nVidia Optimus 中以编程方式选择集成显卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆