Enable discrete GPU if possible on Windows dual-GPU configuration
This commit is contained in:
@@ -46,6 +46,18 @@ namespace lime {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef HX_WINDOWS
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
_declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
|
||||||
|
_declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef HX_LINUX
|
#ifdef HX_LINUX
|
||||||
|
|
||||||
// Improve compatibility with old glibc
|
// Improve compatibility with old glibc
|
||||||
|
|||||||
Reference in New Issue
Block a user