Performance: add option to disable window shadows

Rendering window shadows in GTK4 doubles GPU usage. This commit adds an option to disable them for performance gain (useful on low-end devices).
This commit is contained in:
Rafostar
2020-11-13 19:26:49 +01:00
parent 4413fdb8a2
commit f660d900ba
8 changed files with 68 additions and 13 deletions

View File

@@ -241,3 +241,15 @@ class ClapperGStreamerPage extends PrefsBase.Grid
this.settingsChangedSignal = null;
}
});
var TweaksPage = GObject.registerClass(
class ClapperTweaksPage extends PrefsBase.Grid
{
_init()
{
super._init();
this.addTitle('Performance');
this.addCheckButton('Render window shadows', 'render-shadows');
}
});