Ubuntu's GNOME desktop rendering latency is higher than necessary

Bug #2007262 reported by Daniel van Vugt
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mutter (Ubuntu)
Fix Released
Medium
Daniel van Vugt
Jammy
Triaged
Medium
Daniel van Vugt
Kinetic
Won't Fix
Medium
Daniel van Vugt
Lunar
Fix Released
Medium
Daniel van Vugt

Bug Description

[ Impact ]

Ubuntu's GNOME desktop is higher latency than necessary. It's stuck in triple buffering when it should be dropping to double buffering during light rendering.

[ Test Plan ]

1. Add this to /etc/environment:

     MUTTER_DEBUG=kms

2. Reboot and log into a Wayland session.

3. Open a Terminal and run:

     journalctl -f /usr/bin/gnome-shell | grep 'Swap buffers'

4. Drag the Terminal window rapidly with the mouse (a high sample rate mouse will also help).

Observed bug: "KMS: Swap buffers: 2 frames pending (triple-buffering)"
Expected fix: "KMS: Swap buffers: 1 frames pending (double-buffering)"

If you don't at first confirm the bug prior to the fix then try dragging the window to the top bar before wiggling it or opening the overview to make the render load higher. The fix will make the log messages return to double buffering much sooner and stay there more reliably.

[ Where problems could occur ]

Any part of the smoothness of the desktop experience could be impacted since the fix involves changing the frame clock for frame scheduling.

[ Other Info ]

Upstream fix: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1441/diffs?commit_id=17ea73d0570318926899c4e3e4821a8b7b21edae

Changed in mutter (Ubuntu):
assignee: nobody → Daniel van Vugt (vanvugt)
status: New → In Progress
description: updated
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
description: updated
description: updated
Changed in mutter (Ubuntu Kinetic):
assignee: nobody → Daniel van Vugt (vanvugt)
Changed in mutter (Ubuntu Jammy):
assignee: nobody → Daniel van Vugt (vanvugt)
Changed in mutter (Ubuntu Kinetic):
status: New → Triaged
importance: Undecided → Medium
Changed in mutter (Ubuntu Jammy):
importance: Undecided → Medium
status: New → Triaged
Changed in mutter (Ubuntu Lunar):
status: In Progress → Fix Committed
Changed in mutter (Ubuntu Lunar):
status: Fix Committed → Fix Released
summary: - Ubuntu's GNOME desktop is higher latency than necessary
+ Ubuntu's GNOME desktop rendering latency is higher than necessary
Changed in mutter (Ubuntu Kinetic):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.