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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user