Re: Requires High Performance Graphic Card - Why?

2016-12-16 Thread Jens Alfke
… and by total coincidence, I just received the iOS Dev Weekly newsletter, 
which links to a blog post written a few days ago describing this in great 
detail:
http://supermegaultragroovy.com//2016/12/10/auto-graphics-switching 


"Oddly, many years after this feature was introduced, it still doesn’t appear 
by default in the Info.plist. It doesn’t even show up in the default Info.plist 
generated for new apps by Xcode. Is this a big deal? Not really, but it seems 
like an oversight this many years later.”

—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

Re: Requires High Performance Graphic Card - Why?

2016-12-16 Thread Jens Alfke

> On Dec 15, 2016, at 11:19 PM, Alastair Houghton 
>  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 
> 

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

Re: Requires High Performance Graphic Card - Why?

2016-12-15 Thread Alastair Houghton
On 16 Dec 2016, at 04:11, Gerriet M. Denkmann  wrote:
> 
> macOS 12.2; MacBook Pro (Retina, Mid 2012).
> 
> Activity Monitor → Energy tells me that my app requires a "High Performance 
> Graphic Card”.
> 
> The problem: it has absolutely no reason to do so.
> The app does some WiFi stuff and displays the result in a window. There is 
> almost no graphics (except from some sliders, buttons, a colour well, etc.) - 
> and there definitely is no need for “High Performance Graphics” of any sort.
> 
> How to debug this?

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

Kind regards,

Alastair.

--
http://alastairs-place.net


___

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

Requires High Performance Graphic Card - Why?

2016-12-15 Thread Gerriet M. Denkmann
macOS 12.2; MacBook Pro (Retina, Mid 2012).

Activity Monitor → Energy tells me that my app requires a "High Performance 
Graphic Card”.

The problem: it has absolutely no reason to do so.
The app does some WiFi stuff and displays the result in a window. There is 
almost no graphics (except from some sliders, buttons, a colour well, etc.) - 
and there definitely is no need for “High Performance Graphics” of any sort.

How to debug this?

Gerriet.


___

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