Commit 8d04b65a authored by Morten Johan Sørvig's avatar Morten Johan Sørvig Committed by Eike Ziller

Mac: Prevent switching to discrete GPU on startup

By default, OpenGL-based apps will switch multi-GPU
Macs over to discrete graphics hardware.

It is possible to prevent this, and it makes sense
to do so for Qt Creator since its users will typically
be more concerned with power usage than raw OpenGL
performance.

Commit 8166a34f makes the necessary change to QtBase
and this commit enables the non-switching behavior
by adding the NSSupportsAutomaticGraphicsSwitching
key to the Info.plist

Change-Id: Iea6ef4b4922645f792cfb9b8b0b8860f5b2c0674
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
Reviewed-by: default avatarGabriel de Dietrich <gabriel.dedietrich@digia.com>
parent 3ac3bcfa
......@@ -4,6 +4,8 @@
<dict>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSSupportsAutomaticGraphicsSwitching</key>
<true/>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment