diff options
author | Morten Johan Sørvig <morten.sorvig@digia.com> | 2014-01-13 22:11:12 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@digia.com> | 2014-01-15 10:26:25 +0100 |
commit | 8d04b65ae9d5d35e763146d12023c794c743a3fd (patch) | |
tree | de53d0fcd20c5224d8941d18b4afc35a5b34bd11 | |
parent | 3ac3bcfadc170bfa2b14053d86e4a43348fd6019 (diff) | |
download | qt-creator-8d04b65ae9d5d35e763146d12023c794c743a3fd.tar.gz |
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: Eike Ziller <eike.ziller@digia.com>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
-rw-r--r-- | src/app/Info.plist.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/app/Info.plist.in b/src/app/Info.plist.in index 290a4e7bc7..6bbfcc3a02 100644 --- a/src/app/Info.plist.in +++ b/src/app/Info.plist.in @@ -4,6 +4,8 @@ <dict> <key>NSPrincipalClass</key> <string>NSApplication</string> + <key>NSSupportsAutomaticGraphicsSwitching</key> + <true/> <key>CFBundleDocumentTypes</key> <array> <dict> |