From cf583aa3673cfca275b64d25c457d9e4a298c46c Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 17 Jan 2023 04:10:30 +0000 Subject: [PATCH] Change default latency policy to "Force smoothest animations" There are some performance differences between X11 and Wayland. Desktop systems are mostly unaffected by them, but laptops suffer a bit. On Wayland, kwin always does double buffering. This is great for reducing latency and avoiding tearing, but if the gpu can't keep up with the work, you're going to see stuttering. Another issue is that in order to reduce latency, we need to have very good frame stats. At the moment, kwin records only cpu render time, but we also need to record the gpu time. We've already done some work in this area, but it's most likely Plasma 6 material. (plasma/kwin!1163) In the meantime, let's change the default latency policy to "Force smoother animations." It's going to improve frame rate. If people care about latency, they can change latency policy in system settings; the option is still there. CCBUG: 452119 --- src/kcms/compositing/kwincompositing_setting.kcfg | 2 +- src/kwin.kcfg | 2 +- src/options.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kcms/compositing/kwincompositing_setting.kcfg b/src/kcms/compositing/kwincompositing_setting.kcfg index 0488de1fbd..989dd03f65 100644 --- a/src/kcms/compositing/kwincompositing_setting.kcfg +++ b/src/kcms/compositing/kwincompositing_setting.kcfg @@ -42,7 +42,7 @@ - LatencyMedium + LatencyExtremelyHigh diff --git a/src/kwin.kcfg b/src/kwin.kcfg index ffc7b1e353..f85548ff06 100644 --- a/src/kwin.kcfg +++ b/src/kwin.kcfg @@ -268,7 +268,7 @@ - LatencyMedium + LatencyExtremelyHigh diff --git a/src/options.h b/src/options.h index 27ae6a3f98..667af178a3 100644 --- a/src/options.h +++ b/src/options.h @@ -905,7 +905,7 @@ public: } static LatencyPolicy defaultLatencyPolicy() { - return LatencyMedium; + return LatencyExtremelyHigh; } static RenderTimeEstimator defaultRenderTimeEstimator() {