Try to enforce the use of a high performance NVIDIA / ATI GPU

on dual graphic card laptops.
This commit is contained in:
bubnikv 2017-03-23 10:28:08 +01:00
parent 1fb3d00932
commit 3b5d1d0e25

View file

@ -5,6 +5,10 @@
#elif _WIN32
#include <Windows.h>
#pragma comment(lib, "user32.lib")
extern "C" {
__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
}
#endif
namespace Slic3r { namespace GUI {