gl01/internal/render/gpu_preference/gpu_preference.c

11 lines
297 B
C
Raw Normal View History

2022-01-20 21:58:50 +08:00
// 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