[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57857] trunk/blender/intern/ghost/intern/ GHOST_WindowWin32.cpp: Fix #35904: on Windows force NVidia Optimus, which does automatic graphics

Brecht Van Lommel brechtvanlommel at pandora.be
Fri Jun 28 19:58:48 CEST 2013


Revision: 57857
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57857
Author:   blendix
Date:     2013-06-28 17:58:48 +0000 (Fri, 28 Jun 2013)
Log Message:
-----------
Fix #35904: on Windows force NVidia Optimus, which does automatic graphics
switching between an integrated Intel and a dedicated NVidia card, to use the
dedicated card for Blender.

A more portable and general solution would be nice, but it's all I could find:
http://developer.download.nvidia.com/devzone/devcenter/gamegraphics/files/OptimusRenderingPolicies.pdf

Modified Paths:
--------------
    trunk/blender/intern/ghost/intern/GHOST_WindowWin32.cpp

Modified: trunk/blender/intern/ghost/intern/GHOST_WindowWin32.cpp
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_WindowWin32.cpp	2013-06-28 17:13:09 UTC (rev 57856)
+++ trunk/blender/intern/ghost/intern/GHOST_WindowWin32.cpp	2013-06-28 17:58:48 UTC (rev 57857)
@@ -106,6 +106,11 @@
 	return is_crappy;
 }
 
+/* force NVidia Optimus to used dedicated graphics */
+extern "C" {
+	__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
+}
+
 GHOST_WindowWin32::GHOST_WindowWin32(
     GHOST_SystemWin32 *system,
     const STR_String& title,




More information about the Bf-blender-cvs mailing list