Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Commit

Permalink
performance: Disable hardware acceleration to decrease the load on GPU.
Browse files Browse the repository at this point in the history
Adding this experimental electron api to see if it makes any difference
in performance.

Improves #213.
  • Loading branch information
akashnimare committed Jan 7, 2018
1 parent a920720 commit fb74251
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ function createMainWindow() {
return win;
}

// Decrease load on GPU (experimental)
app.disableHardwareAcceleration();

// eslint-disable-next-line max-params
app.on('certificate-error', (event, webContents, url, error, certificate, callback) => {
event.preventDefault();
Expand Down

0 comments on commit fb74251

Please sign in to comment.