From 9f8d2d929637944d6ba9748cce9c51f93a6d8a0d Mon Sep 17 00:00:00 2001 From: Eidolon Date: Mon, 16 Mar 2026 13:58:36 -0500 Subject: [PATCH] Enable dedi gpu on laptops by default --- src/sdl/i_main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sdl/i_main.c b/src/sdl/i_main.c index 350ace49a..6eace4567 100644 --- a/src/sdl/i_main.c +++ b/src/sdl/i_main.c @@ -229,3 +229,9 @@ int main(int argc, char **argv) } #endif + +// Enable high performance graphics on multi-gpu laptops, since we can't pick devices in WGL +#ifdef _WIN32 +__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001; +__declspec(dllexport) DWORD AmdPowerXpressRequestHighPerformance = 0x00000001; +#endif