mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-24 00:02:43 +02:00
port: ask for high performance GPU on windows
This commit is contained in:
1 parent
f3c1242858
commit
c5c1ef1d4e
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user