From 3b5d1d0e25f3d9268f820aad7d822678722a3066 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Thu, 23 Mar 2017 10:28:08 +0100 Subject: [PATCH] Try to enforce the use of a high performance NVIDIA / ATI GPU on dual graphic card laptops. --- xs/src/slic3r/GUI/GUI.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xs/src/slic3r/GUI/GUI.cpp b/xs/src/slic3r/GUI/GUI.cpp index 934d07ebd7..c3f03a86fe 100644 --- a/xs/src/slic3r/GUI/GUI.cpp +++ b/xs/src/slic3r/GUI/GUI.cpp @@ -5,6 +5,10 @@ #elif _WIN32 #include #pragma comment(lib, "user32.lib") +extern "C" { +__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001; +__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1; +} #endif namespace Slic3r { namespace GUI {