From 9403046dfc68567b5cc8c2aaa7f0df6683430447 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 19 Nov 2023 22:44:12 +0800 Subject: [PATCH] :art: Force using discrete GPU when there are multiple GPUs available on the desktop https://github.com/siyuan-note/siyuan/issues/9694 --- app/electron/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/electron/main.js b/app/electron/main.js index dec79e7c5..3dc0a811d 100644 --- a/app/electron/main.js +++ b/app/electron/main.js @@ -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