Advertisement Jump to content

Force usage of dedicated graphics card

Recommended Posts


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?

Edited by Magogan

Share this post

Link to post
Share on other sites
Guest quanganht

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.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!