diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-03-05 16:22:13 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-03-05 16:22:13 +1100 |
commit | 79cd235939dece80a2df15bcafcf559b0de81df7 (patch) | |
tree | 32371760fb94fc28f56c3c0ec4f051c2ca2f482e /source/client/StarClientApplication.cpp | |
parent | 9ae14a3d0b118875bff5433e1100094adcfdcf6f (diff) |
Update StarClientApplication.cpp
Diffstat (limited to 'source/client/StarClientApplication.cpp')
-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( |