Re: Requires High Performance Graphic Card - Why?
Re: Requires High Performance Graphic Card - Why?
- Subject: Re: Requires High Performance Graphic Card - Why?
- From: Jens Alfke <email@hidden>
- Date: Fri, 16 Dec 2016 10:46:54 -0800
> On Dec 15, 2016, at 11:19 PM, Alastair Houghton <email@hidden> wrote:
>
> This is one of those things that you just need to know. You need to add the key NSSupportsAutomaticGraphicsSwitching to your app’s Info.plist; see
>
> https://developer.apple.com/library/content/qa/qa1734/_index.html <https://developer.apple.com/library/content/qa/qa1734/_index.html>
Huh, I did not know this. That document says:
"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. … Starting with OS X 10.7, you may utilize the integrated GPU on the MacBook Pros if you want to, for example, to save battery life.”
So … any app that uses Core Animation will trigger a switch to the high-end (and power hungry) graphics card, unless it adds that plist key? Even if all the developer did was click that IB checkbox that enables layers?
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden