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

Commit 9cfc2e2

Browse files
committed
feat: bypass gpu acceleration blocklist #1129
1 parent 1f555a6 commit 9cfc2e2

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/.snyk

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/_boot.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ const innerFontsDir = path.join(__dirname, "assets/fonts");
5858
if (process.env.http_proxy) delete process.env.http_proxy;
5959
if (process.env.https_proxy) delete process.env.https_proxy;
6060

61+
// Bypass GPU acceleration blocklist, trading a bit of stability for a great deal of performance, mostly on Linux
62+
app.commandLine.appendSwitch("ignore-gpu-blocklist");
63+
app.commandLine.appendSwitch("enable-gpu-rasterization");
64+
app.commandLine.appendSwitch("enable-video-decode");
65+
6166
// Fix userData folder not setup on Windows
6267
try {
6368
fs.mkdirSync(electron.app.getPath("userData"));

0 commit comments

Comments
 (0)