ui: Request high-performance graphics on Windows platform

This commit is contained in:
Matt Borgerson 2020-12-31 15:01:44 -07:00 committed by mborgerson
parent 996f3d4dc3
commit a72cc138f4
1 changed files with 8 additions and 0 deletions

View File

@ -51,6 +51,14 @@
#include "hw/xbox/smbus.h" // For eject, drive tray
#include "hw/xbox/nv2a/nv2a.h"
#ifdef _WIN32
// Provide hint to prefer high-performance graphics for hybrid systems
// https://gpuopen.com/learn/amdpowerxpressrequesthighperformance/
__declspec(dllexport) DWORD AmdPowerXpressRequestHighPerformance = 1;
// https://docs.nvidia.com/gameworks/content/technologies/desktop/optimus.htm
__declspec(dllexport) DWORD NvOptimusEnablement = 1;
#endif
void tcg_register_init_ctx(void); // tcg.c
// #define DEBUG_XEMU_C