Main: Request us to be run on dedicated GPU
This commit is contained in:
parent
1445381756
commit
6d5a021f04
|
@ -42,6 +42,14 @@
|
|||
|
||||
#ifdef __WINDOWS__
|
||||
#include "resource.h"
|
||||
|
||||
// Try to force dedicated GPU
|
||||
// https://stackoverflow.com/a/39047129
|
||||
extern "C"
|
||||
{
|
||||
__declspec(dllexport) unsigned long NvOptimusEnablement = 0x00000001;
|
||||
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
#include "icon.png.xxd"
|
||||
|
|
Loading…
Reference in New Issue