> On Dec 15, 2016, at 11:19 PM, Alastair Houghton 
> <alast...@alastairs-place.net> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to