High CPU usage on webview


#1

I’m creating a game editor for HTML5 games. On my Electron app, i’m running the HTML5 game inside webview. When the game is running on webview, it takes more than 50% of CPU usage (and i start to hear a lot of fan noise). But when i open the same game on Chrome browser, it takes less than 20% CPU usage (and no fan noise), so that’s a big difference.

Any idea why this is happening and is there anything i can do to solve this?

Thanks!


#2

@enpu Hi, i am having the same problem…Were you able to resolve this issue?


#3

I resolved it by inserting this code into my main.js file:

app.commandLine.appendSwitch(‘ignore-gpu-blacklist’);


#4

Oh cool…Seems simple enough.

Thank you for your fast response :smiley: