Export variables that force use of dedicated discrete GPUs
This commit is contained in:
parent
f7d612e9f4
commit
8d6cf511aa
1 changed files with 12 additions and 0 deletions
12
libs/gfx/source/discrete_gpu.cpp
Normal file
12
libs/gfx/source/discrete_gpu.cpp
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#ifdef WIN32
|
||||
|
||||
extern "C"
|
||||
{
|
||||
|
||||
__attribute__((dllexport)) unsigned long NvOptimusEnablement = 1;
|
||||
|
||||
__attribute__((dllexport)) int AmdPowerXpressRequestHighPerformance = 1;
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Reference in a new issue