Electron app on windows chooses the weaker card

I made a simple app that draws the current time’s milliseconds on a canvas.
It worked smoothly, however, around every 10 seconds there was a glitch for less that a second, stuck, then continues.

It also did it with the distribution exe… and then I right clicked on the exe, and chose to run it with Nvidia’s card. no glitch.

How do we force the Electron app to choose the better card?
I tried to add the app.commandLine.appendSwitch(“force_high_performance_gpu”);
And it didn’t make any difference…

It is vital to my project, I appreciate any assistance. Thanks.