1
0
Fork 0
A repository that has original sources 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 6669ca38ac
clutter/frame-clock: Lower the threshold for disabling error diffusion
Error diffusion was introduced in 0555a5bbc1 for Nvidia where last
presentation time is always unknown (zero). Dispatch times would drift
apart always being a fraction of a frame late, and accumulated to cause
periodic frame skips. So error diffusion corrected that precisely and
avoided the skips.

That works great with double buffering but less great with triple
buffering. It's certainly still needed with triple buffering but
correcting for a lateness of many milliseconds isn't a good idea. That's
because a dispatch being that late is not due to main loop jitter but due
to Nvidia's swap buffers blocking when the queue is full. So scheduling
the next frame even earlier using last_dispatch_lateness_us would just
perpetuate the problem of swap buffers blocking for too long.

So now we lower the threshold of when error diffusion gets disabled. It's
still high enough to fix the original smoothness problem it was for, but
now low enough to detect Nvidia's occasionally blocking swaps and backs
off in that case.

Since the average duration of a blocking swap is half a frame interval
and we want to distinguish between that and sub-millisecond jitter, the
logical threshold is halfway again: refresh_interval_us/4.

Signed-off-by: Mingi Sung <sungmg@saltyming.net>
2024-09-15 14:28:26 +09:00
.gitlab/issue_templates gitlab: Add missing < in markdown comment tag 2020-02-14 03:10:28 +00:00
.gitlab-ci ci: Restrict use of "Fixes #123" 2024-09-11 00:44:52 +02:00
clutter clutter/frame-clock: Lower the threshold for disabling error diffusion 2024-09-15 14:28:26 +09:00
cogl cogl/onscreen: Indent declaration parameters to align with above 2024-09-15 14:28:24 +09:00
data core: Add debug control setting for session management 2024-09-14 13:47:21 +00:00
doc docs/debugging: Update CI reproduction steps 2024-08-29 22:04:44 +00: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 Latvian translation 2024-09-11 19:30:07 +00:00
src renderer/native: Discard pending swaps when rebuilding views 2024-09-15 14:28:26 +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 misc: Add common noisy dirs to gitignore 2024-01-08 19:53:57 +01:00
.gitlab-ci.yml build: Add gvdb dependency 2024-09-14 13:47:21 +00: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.0 2024-09-14 22:36:50 +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.0 2024-09-14 22:36:50 +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.