When I open VoiceMac, the discrete graphics chip turns on. I can see that this is the case using gfxCardStatus. Chrome used to do this too, and it was some odd api that caused it to turn on the graphics chip, not because of needing 3D graphics support. They fixed it, and helped Chrome use less battery. Can you fix it too?
Thanks,
Josh
Mr. Gecko
November 1, 2013, 2:16:20 PM
I may be able to fix it, but I do not know what is turning it on. Is it the message window for SMS?
I have a MacBook with both graphics, so I can test... But I always had integrated graphics turned off since the switch between them always caused color changes.
Sure. It looks like it often has to do with using some specific OpenGL routines. More info here:
https://developer.apple.com/library/mac/qa/qa1734/_index.html#//apple_ref/doc/uid/DTS40010791
and here:
https://developer.apple.com/library/mac/technotes/tn2229/_index.html
Josh
November 1, 2013, 2:26:28 PM
It turns on discrete graphics from the moment you open the app until you close it. I am cloning VoiceMac atm.
Josh
November 1, 2013, 2:38:20 PM
Adding NSSupportsAutomaticGraphicsSwitching=YES to Info.plist stopped the app from switching to discrete graphics for me!
Mr. Gecko
November 1, 2013, 2:40:35 PM
Thanks, I'll add that to my code tree and see if it works on my system then release an update whenever I have some other fixes to add.
Do you want me to mention you in my commit message? If so, how do you want to be mentioned?
Josh
November 1, 2013, 2:42:21 PM
Sure, you can just mention me by my name, Josh Geller. Thanks!