强制机器使用专用图形卡? [英] Forcing Machine to Use Dedicated Graphics Card?

查看:96
本文介绍了强制机器使用专用图形卡?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是使用C ++开发SDL和OpenGL应用程序的团队的一员。

在应用程序运行时,不使用专用图形卡的笔记本电脑GL上下文无法创建,因为集成显卡不支持我们想要的GL版本。



我有一种感觉,这个问题是特定于笔记本电脑的,不是我们可以通过代码解决的问题。但是,如果有人知道是否有解决方案会很棒。

解决方案

它使用NVidia专用图形吗? AFAIK,从集成自动切换到专用的过程基于应用程序配置文件。您的应用程序不在驱动程序的已知3D应用程序列表中,因此用户必须手动切换到专用GPU。



尝试将应用程序的可执行文件名更改为司机寻找的东西。例如Doom3.exe。如果这样做,那么你已经发现你的问题。



如果这没有帮助,请按照本视频中的说明操作,以便如何使驱动程序插入应用程序在它的3D应用程序列表中:



http://www.frequency.com/video/how-to-whitelist-game-with-nvidias/24814032



但上述只是为了验证这是否确实是你的问题。对于实际的解决方案,您应该向图形驱动程序供应商(AMD和NVidia)询问如何将您的应用程序的配置文件插入其列表的最佳方式。 NVidia提供 NVAPI ,并且AMD拥有 ADL and AGS 。他们绝对值得一读。


I am part of a team developing an application using C++ with SDL and OpenGL.

On laptops when the application is ran the dedicated graphics card is not used and the GL context fails to create because the integrated graphics card does not support the version of GL we want.

I have a feeling that this problem is specific to the laptop in question and not something we can solve through code. But, if anyone knows if there is a solution that'd be great.

解决方案

Does it use NVidia dedicated graphics? AFAIK, the process of automatically switching from integrated to dedicated is based on application profiles. Your application is not in the driver's list of known 3D applications, and therefore the user has to manually switch to the dedicated GPU.

Try changing the executable name of your application to something the driver looks for. For example "Doom3.exe". If that works, then you've found your problem.

If that didn't help, try following the instructions in this video on how to make the driver insert your application in its list of 3D apps:

http://www.frequency.com/video/how-to-whitelist-game-with-nvidias/24814032

But the above is only for verifying if this is indeed your problem. For an actual solution to this, you should check with the graphics drivers vendors (AMD and NVidia) on the best way to insert a profile for your application into their lists. NVidia provides NVAPI and AMD has ADL and AGS. They're definitely worth a study.

这篇关于强制机器使用专用图形卡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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