1
0
Fork 0
A repository that has original source for patches used in the Arch User Repository package called "mutter-performance". https://aur.archlinux.org/packages/mutter-performance
Find a file
Daniel van Vugt 0615b2376b
clutter/frame-clock: Conditionally disable triple buffering
1. When direct scanout is attempted

There's no compositing during direct scanout so the "render" time is zero.
Thus there is no need to implement triple buffering for direct scanouts.
Stick to double buffering and enjoy the lower latency.

2. If disabled by environment variable MUTTER_DEBUG_TRIPLE_BUFFERING

With possible values {never, auto, always} where auto is the default.

3. When VRR is in use

VRR calls `clutter_frame_clock_schedule_update_now` which would keep
the buffer queue full, which in turn prevented direct scanout mode.
Because OnscreenNative currently only supports direct scanout with
double buffering.

We now break that feedback loop by preventing triple buffering from
being scheduled when the frame clock mode becomes variable. Long term
this could also be solved by supporting triple buffering in direct
scanout mode. But whether or not that would be desirable given the
latency penalty remains to be seen.

(cherry picked from commit 280f7f6b26cd3e7a82706d1d001419295ea15d8b)
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1441>
Signed-off-by: Mingi Sung <sungmg@saltyming.net>
2024-10-22 17:12:42 +09:00
.gitlab/issue_templates gitlab: Add missing < in markdown comment tag 2020-02-14 03:10:28 +00:00
.gitlab-ci ci: Rebase image to F41 2024-09-20 18:06:26 +00:00
clutter clutter/frame-clock: Conditionally disable triple buffering 2024-10-22 17:12:42 +09:00
cogl cogl/onscreen: Add function cogl_onscreen_get_pending_frame_count 2024-10-22 17:03:45 +09:00
data core: Add debug control setting for session management 2024-09-14 13:47:21 +00:00
doc clutter/frame-clock: Add triple buffering support 2024-10-22 17:11:02 +09:00
meson build: Replace custom post-install script 2022-11-19 02:21:05 +01:00
mtk mtk: Move meta_rectangle_transform to Mtk 2024-08-09 15:51:36 +00:00
po Update German translation 2024-10-20 20:16:54 +00:00
src backends: Flag that the frame attempted direct scanout 2024-10-22 17:11:50 +09:00
subprojects build: Add gvdb dependency 2024-09-14 13:47:21 +00:00
tools core/debug-control: Allow changing the reference luminance of outputs 2024-08-30 20:03:43 +00:00
.editorconfig Add editorconfig file 2024-05-21 09:09:11 +00:00
.gitignore Add gvdb subproject to .gitignore 2024-10-18 14:54:12 +02:00
.gitlab-ci.yml ci: Don't build our own gtk3 2024-10-18 14:57:22 +02:00
check-style.py check-style: Force the default prefix in git diff 2024-03-12 12:47:56 +10:00
config.h.meson clutter/settings: Remove unused fontconfig-timestamp property 2024-08-22 19:09:51 +00:00
COPYING Updated obsolete FSF postal address in COPYING 2014-01-12 08:44:30 +07:00
logo.svg docs: Add a logo 2024-01-09 13:38:54 +00:00
meson.build Bump version to 47.1 2024-10-18 21:52:47 +02:00
meson_options.txt clutter/settings: Remove unused fontconfig-timestamp property 2024-08-22 19:09:51 +00:00
mutter.doap doap: Remove marge-bot maintainer entry 2024-08-13 08:48:28 +00:00
NEWS Bump version to 47.1 2024-10-18 21:52:47 +02:00
README.md cally: Merge inside Clutter 2024-08-07 22:46:16 +00:00

Mutter

Mutter is a Wayland display server and X11 window manager and compositor library.

When used as a Wayland display server, it runs on top of KMS and libinput. It implements the compositor side of the Wayland core protocol as well as various protocol extensions. It also has functionality related to running X11 applications using Xwayland.

When used on top of Xorg it acts as a X11 window manager and compositing manager.

It contains functionality related to, among other things, window management, window compositing, focus tracking, workspace management, keybindings and monitor configuration.

Internally it uses a fork of Cogl, a hardware acceleration abstraction library used to simplify usage of OpenGL pipelines, as well as a fork of Clutter, a scene graph and user interface toolkit.

Mutter is used by, for example, GNOME Shell, the GNOME core user interface, and by Gala, elementary OS's window manager. It can also be run standalone, using the command "mutter", but just running plain mutter is only intended for debugging purposes.

Contributing

To contribute, open merge requests at https://gitlab.gnome.org/GNOME/mutter.

It can be useful to first look at the GNOME Handbook and the documentation and API references below first.

Documentation

API Reference

Meetings

There are recurring meetings to discuss development of GNOME Shell, mutter and related components.

License

Mutter is distributed under the terms of the GNU General Public License, version 2 or later. See the COPYING file for detalis.