Main: Request us to be run on dedicated GPU

This commit is contained in:
Ancurio 2021-10-06 23:41:35 +02:00
parent 1445381756
commit 6d5a021f04
1 changed files with 8 additions and 0 deletions

View File

@ -42,6 +42,14 @@
#ifdef __WINDOWS__ #ifdef __WINDOWS__
#include "resource.h" #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 #endif
#include "icon.png.xxd" #include "icon.png.xxd"