From 7afd6df7403aed8c248e32589e076d10d76289b4 Mon Sep 17 00:00:00 2001 From: Peter Repukat Date: Sat, 15 Jan 2022 19:21:35 +0100 Subject: [PATCH] SteamTarget: Default to high performance GPU --- GlosSITarget/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/GlosSITarget/main.cpp b/GlosSITarget/main.cpp index a5a28f7..1cef9ec 100644 --- a/GlosSITarget/main.cpp +++ b/GlosSITarget/main.cpp @@ -30,6 +30,11 @@ limitations under the License. #ifdef _WIN32 +// default to high performance GPU +extern "C" __declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001; +extern "C" __declspec(dllexport) DWORD AmdPowerXpressRequestHighPerformance = 0x00000001; + + LONG Win32FaultHandler(struct _EXCEPTION_POINTERS* ExInfo) {