Request dedicated GPU

This commit is contained in:
Toru the Red Fox 2026-03-07 17:10:45 +00:00 committed by GitHub
parent 7c2869c5b9
commit 83d88847a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,6 +50,13 @@
#include "Xbox/resource.h"
// request use of dedicated GPU from AMD and Nvidia drivers
extern "C"
{
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
__declspec(dllexport) unsigned long NvOptimusEnablement = 0x00000001;
}
#ifdef _MSC_VER
#pragma comment(lib, "legacy_stdio_definitions.lib")
#endif