Skip to content

Commit

Permalink
Try to avoid using the discrete GPU on multi-GPU systems to save power.
Browse files Browse the repository at this point in the history
Add NSSupportsAutomaticGraphicsSwitching to BGMApp's Info.plist in the
hopes that it will use the integrated GPU when possible. BGMApp doesn't
need to use the fastest GPU, so it's better to save battery power.

Untested because I don't have the right hardware. (I actually have an
iMac with a discrete GPU, but the integrated GPU seems to be disabled.)

See #284 and
<https://developer.apple.com/library/archive/qa/qa1734/_index.html>.
  • Loading branch information
kyleneideck committed Apr 21, 2020
1 parent 70a64de commit f24a6cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions BGMApp/BGMApp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,11 @@
</array>
<key>OSAScriptingDefinition</key>
<string>BGMApp.sdef</string>
<!--
Hopefully this will keep Background Music from using the discrete GPU on multi-GPU systems,
which wastes energy. I don't have any hardware I could easily test this on, so it's untested.
-->
<key>NSSupportsAutomaticGraphicsSwitching</key>
<true/>
</dict>
</plist>

0 comments on commit f24a6cb

Please sign in to comment.