mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Add debug flag to enable overlay planes
This commit is contained in:
+7
-2
@@ -542,8 +542,13 @@ impl Tty {
|
||||
});
|
||||
|
||||
let mut planes = surface.planes().clone();
|
||||
// Disable overlay planes as they cause weird performance issues on my system.
|
||||
planes.overlay.clear();
|
||||
|
||||
// Overlay planes are disabled by default as they cause weird performance issues on my
|
||||
// system.
|
||||
if !self.config.borrow().debug.enable_overlay_planes {
|
||||
planes.overlay.clear();
|
||||
}
|
||||
|
||||
let scanout_formats = planes
|
||||
.primary
|
||||
.formats
|
||||
|
||||
Reference in New Issue
Block a user