Hello Amar Satrawala,
What you are running into is a change in how GPU selection is handled in modern Windows builds when applications use WebGL through Chromium Embedded Framework (CEF). With OpenGL contexts, Windows and the driver stack historically defaulted to the discrete GPU when one was present. With WebGL 2 via ANGLE (the translation layer used by Chromium), the GPU selection logic is different: Windows now defers to the OS graphics preference system, which defaults to the integrated GPU unless overridden. That is why your users must manually configure the app in Display Settings → Graphics.
There is no supported registry flag to force GPU selection globally. The recommended way to ensure your application automatically uses the dedicated GPU is to declare the preference explicitly in your executable. Windows 10 and 11 introduced the GraphicsPreference API (SetProcessDefaultGpuPreference) which allows developers to request either GpuPreference::HighPerformance or GpuPreference::MinimumPower. This is part of the DirectX 12 API set. If your application calls this at startup, Windows will route the process to the discrete GPU without requiring user intervention.
For applications that cannot directly call the API, you can embed a manifest entry in the executable. By adding the GraphicsPreference element in the app’s manifest, you can specify that the process should use the high‑performance GPU. NVIDIA also provides the NvOptimusEnablement and AMD provides AmdPowerXpressRequestHighPerformance export flags that can be set in your binary. These are recognized by the driver and force the discrete GPU to be used. For example, in C/C++ you can declare:
c
extern "C" {
__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
}
This ensures that on systems with NVIDIA Optimus or AMD switchable graphics, your application will be launched on the dedicated GPU by default.
I hope you've found something useful here. If it helps you get more insight into the issue, it's appreciated to accept the answer. Should you have more questions, feel free to leave a message. Have a nice day!
Domic Vo.