diff --git a/game/main.cpp b/game/main.cpp index 40df7eb7c1..1abc6ceb2b 100644 --- a/game/main.cpp +++ b/game/main.cpp @@ -17,6 +17,13 @@ #include "game/discord.h" +#ifdef _WIN32 +extern "C" { +__declspec(dllexport) unsigned long NvOptimusEnablement = 0x00000001; +__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1; +} +#endif + // Discord RPC extern int64_t gStartTime;