Force usage of dedicated graphics card

Started by
1 comment, last by GameDev.net 6 years, 2 months ago

Hi,

I have a laptop with an integrated Intel and a dedicated AMD graphics card. When I want my game to use the dedicated one, I have to add a profile in the AMD settings, since


extern "C" { _declspec(dllexport) DWORD AmdPowerXpressRequestHighPerformance = 0x00000001; }

does not have any effect.

But how do you add a game profile automatically? And how do you reliably force Windows to use a dedicated NVIDIA graphics card for your game?

Advertisement

For Nvidia:


extern "C" { DWORD NvOptimusEnablement = 0x00000001; }

This does work on Optimus setups as far as I know. You need to make sure that it is included into the binary, the easiest way to do so is stuff the line into your Main.cpp or equivalent file.

This topic is closed to new replies.

Advertisement