- [Psy-X] defining AMD PowerXpress and Nvidia Optimus exports for Windows

This commit is contained in:
Ilya Shurumov 2021-01-12 22:40:17 +06:00
parent 3d65ed06a3
commit afd2c1dca8

View File

@ -8,6 +8,15 @@
#include "PSYX_GLOBALS.H"
#ifdef _WIN32
#include <windows.h>
extern "C"
{
__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
}
#endif //def WIN32
#define USE_PBO 1
#define USE_OFFSCREEN_BLIT 1
#define USE_FRAMEBUFFER_BLIT 1