Don't automatically switch to the higher-end discrete GPU

江枫思渺然 提交于 2019-12-03 08:51:18

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/8870304/dont-automatically-switch-to-the-higher-end-discrete-gpu

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