soleron
January 29, 2021, 11:44pm
1
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:
No, using IL2CPP actually makes it much easier. There's not a good way to achieve it on .NET.
Put this piece 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;
}
That should make drivers default to dedicated GPU for your executable.
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