From 86e15f0adb077e146fc10663b3435a78e8f08d3f Mon Sep 17 00:00:00 2001 From: pompurin404 Date: Mon, 16 Sep 2024 14:07:33 +0800 Subject: [PATCH] use in process gpu --- changelog.md | 8 ++------ src/main/index.ts | 6 ++++++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/changelog.md b/changelog.md index 9b4f080..ef7e761 100644 --- a/changelog.md +++ b/changelog.md @@ -2,11 +2,7 @@ - 1.2.x YAML覆写语法有所变动,请更新后参考文档进行修改 -### New Features - -- 添加 Homebrew 和 Winget - ### Bug Fixes -- 修复 MacOS 系统代理开启失败的问题 -- 修复 YAML不合法时内核启动失败的问题 +- 修复某些 Windows 设备D盘无法启动的问题 +- 修复带锚点yaml覆写出错的问题 diff --git a/src/main/index.ts b/src/main/index.ts index 386bba5..a8287c5 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -48,6 +48,12 @@ if (!gotTheLock) { app.quit() } +if (process.platform === 'win32') { + // https://github.com/electron/electron/issues/43278 + // https://github.com/electron/electron/issues/36698 + app.commandLine.appendSwitch('in-process-gpu') +} + const initPromise = init() app.on('second-instance', async (_event, commandline) => {