1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-17 18:36:43 +02:00

#15 add hint to the driver to use discrete GPU

This commit is contained in:
XProger
2018-06-21 06:19:16 +03:00
parent 023c098506
commit adfd4427c3

View File

@@ -22,6 +22,14 @@
// TODO: add IK for arms // TODO: add IK for arms
// TODO: controls // TODO: controls
// hint to the driver to use discrete GPU
extern "C" {
// NVIDIA
__declspec(dllexport) int NvOptimusEnablement = 1;
// AMD
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
}
#ifdef VR_SUPPORT #ifdef VR_SUPPORT
#include "libs/openvr/openvr.h" #include "libs/openvr/openvr.h"
#endif #endif