port: ask for high performance GPU on windows

This commit is contained in:
fgsfds committed 2024-05-13 12:19:34 +02:00
1 parent f3c1242858
commit c5c1ef1d4e
1 file changed
+4
+4
View File
@@ -22,6 +22,10 @@ static CREATEWAITABLETIMEREXAFN pfnCreateWaitableTimerExA;
// winapi also provides a yield macro
#define DO_YIELD() YieldProcessor()
// ask system for high performance GPU, if any
__attribute__((dllexport)) u32 NvOptimusEnablement = 1;
__attribute__((dllexport)) u32 AmdPowerXpressRequestHighPerformance = 1;
#else
#ifndef _GNU_SOURCE