Merge pull request #9073 from darkain/patch-1

Adding AmdPowerXpressRequestHighPerformance
This commit is contained in:
JMC47 2020-09-16 15:56:04 -04:00 committed by GitHub
commit 655308255e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -68,8 +68,11 @@ static VideoBackendBase* s_default_backend = nullptr;
// Nvidia drivers >= v302 will check if the application exports a global
// variable named NvOptimusEnablement to know if it should run the app in high
// performance graphics mode or using the IGP.
// AMD drivers >= 13.35 do the same, but for the variable
// named AmdPowerXpressRequestHighPerformance instead.
extern "C" {
__declspec(dllexport) DWORD NvOptimusEnablement = 1;
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
}
#endif