Re-enable high power graphics card on Windows.

This is a regression issue against 1.41.3
This commit is contained in:
bubnikv 2019-06-13 17:42:55 +02:00
parent 9b7bb41db5
commit d750d4f925
2 changed files with 7 additions and 0 deletions

View File

@ -7,10 +7,13 @@
#include <Windows.h>
#include <wchar.h>
#ifdef SLIC3R_GUI
extern "C"
{
// Let the NVIDIA and AMD know we want to use their graphics card
// on a dual graphics card system.
__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
}
#endif /* SLIC3R_GUI */
#endif /* WIN32 */

View File

@ -8,10 +8,14 @@
#include <wchar.h>
#ifdef SLIC3R_GUI
//Turn on high power graphics for NVidia cards on laptops (with built in graphics cards + Nvidia cards)
extern "C"
{
// Let the NVIDIA and AMD know we want to use their graphics card
// on a dual graphics card system.
__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
}
#endif /* SLIC3R_GUI */
#include <stdlib.h>