From 79cd235939dece80a2df15bcafcf559b0de81df7 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Tue, 5 Mar 2024 16:22:13 +1100 Subject: Update StarClientApplication.cpp --- source/client/StarClientApplication.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/client/StarClientApplication.cpp') 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 +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( -- cgit v1.2.3