gpt4 book ai didi

macos - 不要自动切换到更高端的独立GPU

转载 作者:行者123 更新时间:2023-12-03 16:13:36 24 4
gpt4 key购买 nike

正如本文中所写的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.

有办法防止这种情况发生吗?较新的 MacBook Pro 上的独立 GPU 会浪费电量并缩短电池生命周期。

显然,在 Info.plist 中简单插入 NSSupportsAutomaticGraphicsSwitching 键(在技术问答中建议)是不够的。

最佳答案

不幸的是,在 2008 年末的 MacBook Pro 上,我们无法避免切换到独立 GPU。

在 2011 款 MacBook Pro 上,可以通过在 Info.plist 文件中插入 bool 值为 trueNSSupportsAutomaticGraphicsSwitching 键来阻止自动切换。请注意,这仅适用于 Mac OS X Lion。

关于macos - 不要自动切换到更高端的独立GPU,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8870304/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com