From 36b423bf1c41879a7754dcce037416dcad56e3c5 Mon Sep 17 00:00:00 2001 From: Luke Usher Date: Thu, 15 Mar 2018 08:14:14 +0000 Subject: [PATCH] Use High Performance GPUs by default --- src/CxbxKrnl/CxbxKrnl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/CxbxKrnl/CxbxKrnl.cpp b/src/CxbxKrnl/CxbxKrnl.cpp index f5ba84ae4..ebf79cf09 100644 --- a/src/CxbxKrnl/CxbxKrnl.cpp +++ b/src/CxbxKrnl/CxbxKrnl.cpp @@ -36,6 +36,9 @@ #define _XBOXKRNL_DEFEXTRN_ +// Default to High Performance Mode on machines with dual graphics +extern "C" { __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1; // AMD __declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001; // NVIDIA } + /* prevent name collisions */ namespace xboxkrnl {