From 57bf3db75a195f9812465d216abe66c16f0e0792 Mon Sep 17 00:00:00 2001 From: Nicolas Hafner Date: Wed, 2 Mar 2022 12:30:52 +0100 Subject: [PATCH 1/1] Hybrid graphics options --- src/runtime/win32-os.c | 3 +++ src/runtime/win32-os.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/runtime/win32-os.c b/src/runtime/win32-os.c index f001b79c8..363624ee1 100644 --- a/src/runtime/win32-os.c +++ b/src/runtime/win32-os.c @@ -86,6 +86,9 @@ typedef WCHAR console_char; typedef CHAR console_char; #endif +DWORD AmdPowerXpressRequestHighPerformance = 0x00000001; +DWORD NvOptimusEnablement = 0x00000001; + /* wrappers for winapi calls that must be successful (like SBCL's * (aver ...) form). */ diff --git a/src/runtime/win32-os.h b/src/runtime/win32-os.h index 470ed6bb6..6ca93a4e7 100644 --- a/src/runtime/win32-os.h +++ b/src/runtime/win32-os.h @@ -29,6 +29,9 @@ #include "target-arch-os.h" #include "target-arch.h" +extern DWORD AmdPowerXpressRequestHighPerformance; +extern DWORD NvOptimusEnablement; + #ifdef LISP_FEATURE_SB_THREAD #include "pthreads_win32.h" #else -- 2.35.1