Skip to content

Commit

Permalink
🎨 Force using discrete GPU when there are multiple GPUs available on …
Browse files Browse the repository at this point in the history
…the desktop #9694
  • Loading branch information
88250 committed Nov 19, 2023
1 parent ec4da7c commit 9403046
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,7 @@ app.commandLine.appendSwitch("disable-web-security");
app.commandLine.appendSwitch("auto-detect", "false");
app.commandLine.appendSwitch("no-proxy-server");
app.commandLine.appendSwitch("enable-features", "PlatformHEVCDecoderSupport");
app.commandLine.appendSwitch("force_high_performance_gpu"); // Force using discrete GPU when there are multiple GPUs available on the desktop https://github.com/siyuan-note/siyuan/issues/9694

app.setPath("userData", app.getPath("userData") + "-Electron"); // `~/.config` 下 Electron 相关文件夹名称改为 `SiYuan-Electron` https://github.com/siyuan-note/siyuan/issues/3349

Expand Down

0 comments on commit 9403046

Please sign in to comment.