Merge pull request #4846 from fluffyfreak/gpu-switch-flags-linux

Cleaned up GPU flags for AMD and comments
master
Webster Sheets 2020-03-29 10:38:50 -04:00 committed by GitHub
commit 84eb3e051c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -21,10 +21,12 @@
extern "C" {
// This is the quickest and easiest way to enable using the nVidia GPU on a Windows laptop with a dedicated nVidia GPU and Optimus tech.
// enable optimus!
// https://docs.nvidia.com/gameworks/content/technologies/desktop/optimus.htm
__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
// AMD have one too!!!
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
// https://gpuopen.com/amdpowerxpressrequesthighperformance/
__declspec(dllexport) DWORD AmdPowerXpressRequestHighPerformance = 0x00000001;
}
#ifdef RegisterClass