How to force Discrete GPU?


#1

Hello!

I need to use discrete GPU 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;
}