mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Enable dedi gpu on laptops by default
This commit is contained in:
parent
515b1e3770
commit
8a5f548f87
1 changed files with 9 additions and 0 deletions
|
|
@ -310,3 +310,12 @@ void operator delete(void* ptr) noexcept
|
||||||
TracyFree(ptr);
|
TracyFree(ptr);
|
||||||
free(ptr);
|
free(ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Enable high performance graphics on multi-gpu laptops, since we can't pick devices in WGL
|
||||||
|
#ifdef _WIN32
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
|
__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
|
||||||
|
__declspec(dllexport) DWORD AmdPowerXpressRequestHighPerformance = 0x00000001;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue