mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-09 23:55:40 +12:00
Merge pull request #71 from wheremyfoodat/GamingProcessingUnit
Ask Windows to give us a dGPU instead of an iGPU
This commit is contained in:
commit
8d307a4421
1 changed files with 10 additions and 0 deletions
|
@ -1,5 +1,15 @@
|
||||||
#include "emulator.hpp"
|
#include "emulator.hpp"
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#include <windows.h>
|
||||||
|
|
||||||
|
// Gently ask to use the discrete Nvidia/AMD GPU if possible instead of integrated graphics
|
||||||
|
extern "C" {
|
||||||
|
_declspec(dllexport) DWORD NvOptimusEnablement = 1;
|
||||||
|
_declspec(dllexport) DWORD AmdPowerXpressRequestHighPerformance = 1;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
Emulator::Emulator() : kernel(cpu, memory, gpu), cpu(memory, kernel), gpu(memory, gl), memory(cpu.getTicksRef()) {
|
Emulator::Emulator() : kernel(cpu, memory, gpu), cpu(memory, kernel), gpu(memory, gl), memory(cpu.getTicksRef()) {
|
||||||
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_EVENTS) < 0) {
|
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_EVENTS) < 0) {
|
||||||
Helpers::panic("Failed to initialize SDL2");
|
Helpers::panic("Failed to initialize SDL2");
|
||||||
|
|
Loading…
Add table
Reference in a new issue