How do I make sure users on a laptop always use the faster GPU if there is one?

More and more people depend on laptops for their computing experience.
However as it is many applications starting on a laptop use the intel integrated graphics by default.

How can I make it that every time the app starts it uses the beefier graphics chip?

Windows Standalone will default to dedicated GPU. On UWP, you need to do this:

1 Like

Is this something I can copy paste on a script?
I have no idea where and how I should use it.

You need to put that piece of code in one of the source files (I’d do it in Main.cpp, just above wWinMain) in the generated VS project:

extern "C"
{
    __declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
    __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
}
1 Like