[Bf-blender-cvs] [dd4b98133eb] master: Fix T71342: macOS does not always use the discrete GPU for Blender

Brecht Van Lommel noreply at git.blender.org
Fri Dec 6 19:36:05 CET 2019


Commit: dd4b98133eb861f28053e7464574254d3cd9e594
Author: Brecht Van Lommel
Date:   Fri Dec 6 19:12:44 2019 +0100
Branches: master
https://developer.blender.org/rBdd4b98133eb861f28053e7464574254d3cd9e594

Fix T71342: macOS does not always use the discrete GPU for Blender

This reverts commit 3d9cc4d3f174d01c96d65a4e9cd751699bcb8744. The commit
message and intent behind the commit is unclear. We generally want the
discrete GPU to be used for best performance, not the integrated GPU.

===================================================================

M	intern/ghost/intern/GHOST_ContextCGL.mm
M	release/darwin/Blender.app/Contents/Info.plist

===================================================================

diff --git a/intern/ghost/intern/GHOST_ContextCGL.mm b/intern/ghost/intern/GHOST_ContextCGL.mm
index 1fbce0c1e6b..df750fc50f6 100644
--- a/intern/ghost/intern/GHOST_ContextCGL.mm
+++ b/intern/ghost/intern/GHOST_ContextCGL.mm
@@ -227,8 +227,6 @@ static void makeAttribList(std::vector<NSOpenGLPixelFormatAttribute> &attribs,
     attribs.push_back(NSOpenGLPFANoRecovery);
   }
 
-  attribs.push_back(NSOpenGLPFAAllowOfflineRenderers);  // for automatic GPU switching
-
   if (stereoVisual)
     attribs.push_back(NSOpenGLPFAStereo);
 
diff --git a/release/darwin/Blender.app/Contents/Info.plist b/release/darwin/Blender.app/Contents/Info.plist
index b8cd55d2e43..2408cf363b1 100644
--- a/release/darwin/Blender.app/Contents/Info.plist
+++ b/release/darwin/Blender.app/Contents/Info.plist
@@ -49,7 +49,5 @@
 	<string>NSApplication</string>
 	<key>NSHighResolutionCapable</key>
 	<true/>
-	<key>NSSupportsAutomaticGraphicsSwitching</key>
-	<true/>
 </dict>
 </plist>



More information about the Bf-blender-cvs mailing list