不要自动切换到更高端的离散GPU [英] Don't automatically switch to the higher-end discrete GPU

查看:2309
本文介绍了不要自动切换到更高端的离散GPU的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如本技术问答中所述:默认情况下,一旦你的应用程序创建一个OpenGL上下文(通过
直接调用OpenGL或者一个依赖于OpenGL的API)作为核心
动画,核心图像等),MacBook Pro自动切换到
更高端的离散GPU的性能问题,将不会切换
,直到应用程序退出。 p>

有一种方法可以防止这种情况发生?



简单插入 NSSupportsAutomaticGraphicsSwitching

解决方案

在2008年末,MacBook好的,不幸的是,没有什么我们可以做,以避免切换到单独的GPU。



在2011年MacBook优点,相反,自动切换可以防止插入 NSSupportsAutomaticGraphicsSwitching 键在Info.plist文件中的布尔值 true 。注意,这只能从Mac OS X Lion开始。


As written in this Technical Q&A:

By default, once your application creates an OpenGL context (by either calling OpenGL directly or an API that relies on OpenGL such as Core Animation, Core Image, etc), the MacBook Pro automatically switches to the higher-end discrete GPU for performance concerns and won't switch back until the application quits.

There is a way to prevent this? The discrete GPU, on newer MacBook Pros, wastes power and shortens battery life.

The simple insertion of the NSSupportsAutomaticGraphicsSwitching key in Info.plist (suggested in the Technical Q&A), apparently, is not enough.

解决方案

On late 2008 MacBook Pros, unfortunately, there is nothing we can do to avoid the switching to the discrete GPU.

On 2011 MacBook Pros, instead, the automatic switch can be prevented inserting the NSSupportsAutomaticGraphicsSwitching key with a Boolean value of true inside the Info.plist file. Note that this only works starting with Mac OS X Lion.

这篇关于不要自动切换到更高端的离散GPU的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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