Browse Source

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

Eugene Pankov 4 years ago
parent
commit
e90db7f07f

+ 4 - 0
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(

+ 2 - 0
tabby-core/src/configDefaults.yaml

@@ -36,3 +36,5 @@ vault: null
 encrypted: false
 enableExperimentalFeatures: false
 pluginBlacklist: []
+hacks:
+  disableGPU: false

+ 16 - 0
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()'
+    )