mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
Try to enforce the use of a high performance NVIDIA / ATI GPU
on dual graphic card laptops.
This commit is contained in:
parent
1fb3d00932
commit
3b5d1d0e25
1 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,10 @@
|
||||||
#elif _WIN32
|
#elif _WIN32
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
#pragma comment(lib, "user32.lib")
|
#pragma comment(lib, "user32.lib")
|
||||||
|
extern "C" {
|
||||||
|
__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
|
||||||
|
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace Slic3r { namespace GUI {
|
namespace Slic3r { namespace GUI {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue