Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
feat: bypass gpu acceleration blocklist #1129
Browse files Browse the repository at this point in the history
  • Loading branch information
GitSquared committed Jun 2, 2021
1 parent 1f555a6 commit 9cfc2e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/.snyk

This file was deleted.

5 changes: 5 additions & 0 deletions src/_boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ const innerFontsDir = path.join(__dirname, "assets/fonts");
if (process.env.http_proxy) delete process.env.http_proxy;
if (process.env.https_proxy) delete process.env.https_proxy;

// Bypass GPU acceleration blocklist, trading a bit of stability for a great deal of performance, mostly on Linux
app.commandLine.appendSwitch("ignore-gpu-blocklist");
app.commandLine.appendSwitch("enable-gpu-rasterization");
app.commandLine.appendSwitch("enable-video-decode");

// Fix userData folder not setup on Windows
try {
fs.mkdirSync(electron.app.getPath("userData"));
Expand Down

0 comments on commit 9cfc2e2

Please sign in to comment.