From e90db7f07f83e05dec5a56544d8b8d3a83a67f9e Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sun, 19 Dec 2021 18:11:43 +0100 Subject: [PATCH] UI switch for --disable-gpu - #5131, #3499 --- app/lib/app.ts | 4 ++++ tabby-core/src/configDefaults.yaml | 2 ++ .../components/windowSettingsTab.component.pug | 16 ++++++++++++++++ 3 files changed, 22 insertions(+) diff --git a/app/lib/app.ts b/app/lib/app.ts index 52ac5acf..8a0483c2 100644 --- a/app/lib/app.ts +++ b/app/lib/app.ts @@ -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( diff --git a/tabby-core/src/configDefaults.yaml b/tabby-core/src/configDefaults.yaml index 7464e895..f0555b2f 100644 --- a/tabby-core/src/configDefaults.yaml +++ b/tabby-core/src/configDefaults.yaml @@ -36,3 +36,5 @@ vault: null encrypted: false enableExperimentalFeatures: false pluginBlacklist: [] +hacks: + disableGPU: false diff --git a/tabby-settings/src/components/windowSettingsTab.component.pug b/tabby-settings/src/components/windowSettingsTab.component.pug index 39fe27df..a4c1ae94 100644 --- a/tabby-settings/src/components/windowSettingsTab.component.pug +++ b/tabby-settings/src/components/windowSettingsTab.component.pug @@ -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()' + )