Skip to content

Commit

Permalink
use in process gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
pompurin404 committed Oct 9, 2024
1 parent cf56966 commit 86e15f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 2 additions & 6 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@

- 1.2.x YAML覆写语法有所变动,请更新后参考文档进行修改

### New Features

- 添加 Homebrew 和 Winget

### Bug Fixes

- 修复 MacOS 系统代理开启失败的问题
- 修复 YAML不合法时内核启动失败的问题
- 修复某些 Windows 设备D盘无法启动的问题
- 修复带锚点yaml覆写出错的问题
6 changes: 6 additions & 0 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 86e15f0

Please sign in to comment.