Export variables that force use of dedicated discrete GPUs

This commit is contained in:
Nikita Lisitsa 2022-08-14 22:20:24 +03:00
parent f7d612e9f4
commit 8d6cf511aa

View file

@ -0,0 +1,12 @@
#ifdef WIN32
extern "C"
{
__attribute__((dllexport)) unsigned long NvOptimusEnablement = 1;
__attribute__((dllexport)) int AmdPowerXpressRequestHighPerformance = 1;
}
#endif