mirror of
https://github.com/open-goal/jak-project
synced 2026-06-10 12:55:45 -04:00
Automatically switch to dedicated GPU in OpenGOAL runtime (#1715)
* Automatically switch to dedicated GPU for runtime Some machines with dual-GPUs cannot properly detect OpenGOAL as a high-performance application and properly utilize the dedicated GPU. This sets a flag for both Radeon and NVIDIA GPUs to always use the high performance GPU when available. I do not have a dual-GPU machine to test this on, but this should just work out of the box. * clang-format One day I will understand clang
This commit is contained in:
@@ -17,6 +17,13 @@
|
||||
|
||||
#include "game/discord.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
extern "C" {
|
||||
__declspec(dllexport) unsigned long NvOptimusEnablement = 0x00000001;
|
||||
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Discord RPC
|
||||
extern int64_t gStartTime;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user