Update: I also saw documentation and discussions that it must always use discrete GPU but it is not, it always use internal one at the moment.
I need to use discrete GPU in electron.js app in case there are integrated and discrete, how to force it in Electron?
In c++ it can be done like that:
extern "C"
{
__declspec(dllexport) unsigned long NvOptimusEnablement = 0x00000001;
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
}
How to do that in electron.js?