High CPU usage on webview


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?



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


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



Oh cool…Seems simple enough.

Thank you for your fast response :smiley: