UI switch for --disable-gpu - #5131, #3499

上级 5249a907
......@@ -70,6 +70,10 @@ export class Application {
app.commandLine.appendSwitch('enable-transparent-visuals')
app.disableHardwareAcceleration()
}
if (this.configStore.hacks?.disableGPU) {
app.commandLine.appendSwitch('disable-gpu')
app.disableHardwareAcceleration()
}
}
this.userPluginsPath = path.join(
......
......@@ -36,3 +36,5 @@ vault: null
encrypted: false
enableExperimentalFeatures: false
pluginBlacklist: []
hacks:
disableGPU: false
......@@ -98,6 +98,8 @@ h3.mb-3 Window
)
| Full
h3.mt-4 Docking
.form-line(*ngIf='docking')
.header
.title Dock the terminal
......@@ -211,6 +213,8 @@ h3.mb-3 Window
(ngModelChange)='saveConfiguration(); ',
)
h3.mt-4 Tabs
.form-line
.header
.title Tabs location
......@@ -288,3 +292,15 @@ h3.mb-3 Window
[(ngModel)]='config.store.terminal.hideCloseButton',
(ngModelChange)='config.save();',
)
h3.mt-4 Hacks
.form-line
.header
.title Disable GPU acceleration
.description Tick this if you're experiencing aliasing, ghosting or other visual issues
toggle(
[(ngModel)]='config.store.hacks.disableGPU',
(ngModelChange)='config.save(); config.requestRestart()'
)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册