gl01/internal/render/gpu_preference/gpu_preference.c
2022-01-20 21:58:50 +08:00

11 lines
297 B
C

// define the two symbols on Windows so that application
// could benefit from using the more powerful discrete GPU
#if defined (_WIN32)
__declspec(dllexport) unsigned long NvOptimusEnablement = 1;
__declspec(dllexport) unsigned long AmdPowerXpressRequestHighPerformance = 1;
#endif