diff options
-rw-r--r-- | source/client/StarClientApplication.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/client/StarClientApplication.cpp b/source/client/StarClientApplication.cpp index 8967534..ef78dd7 100644 --- a/source/client/StarClientApplication.cpp +++ b/source/client/StarClientApplication.cpp @@ -22,6 +22,12 @@ #include "StarInputLuaBindings.hpp" #include "StarVoiceLuaBindings.hpp" +#if defined STAR_SYSTEM_WINDOWS +#include <windows.h> +extern "C" __declspec(dllexport) DWORD NvOptimusEnablement = 1; +extern "C" __declspec(dllexport) DWORD AmdPowerXpressRequestHighPerformance = 1; +#endif // graphics driver is told by these exports to default to the dedicated GPU + namespace Star { Json const AdditionalAssetsSettings = Json::parseJson(R"JSON( |