From 5971aacda07df5be0de4867bac9887c691e66da9 Mon Sep 17 00:00:00 2001
From: spinningthelock <96660254+spinningthelock@users.noreply.github.com>
Date: Sat, 25 Dec 2021 11:30:04 -0500
Subject: [PATCH] Enable using integrated GPU in Dual GPU Macs
Currently YACReader will default to higher-end discrete GPU for OpenGL calls. This increases the battery usage while having no need for such high performance. This Flag tells MacOS to switching to integrated GPU is oky in this app.
References:
https://developer.apple.com/library/archive/qa/qa1734/_index.html
https://developer.apple.com/documentation/bundleresources/information_property_list/nssupportsautomaticgraphicsswitching?language=objc
---
YACReader/Info.plist | 2 ++
1 file changed, 2 insertions(+)
diff --git a/YACReader/Info.plist b/YACReader/Info.plist
index e8affbce..26134f11 100644
--- a/YACReader/Info.plist
+++ b/YACReader/Info.plist
@@ -139,5 +139,7 @@
NSRequiresAquaSystemAppearance
+ NSSupportsAutomaticGraphicsSwitching
+