SL-12775 Run at high performance AMD gpu

master
Andrey Kleshchev 2020-04-03 19:40:55 +03:00
parent 6e8971c4b8
commit 29fec00f3c
1 changed files with 4 additions and 3 deletions

View File

@ -2562,10 +2562,11 @@ void LLGLSyncFence::wait()
}
#if LL_WINDOWS
// Expose desired use of high-performance graphics processor to Optimus driver
// Expose desired use of high-performance graphics processor to Optimus driver and to AMD driver
extern "C"
{
_declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
{
__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
}
#endif