7a0bc5af7f
When the wallpaper image is larger than the monitor resolution we already use mipmapping to scale it down smoothly in hardware. We use `GL_TEXTURE_MIN_FILTER` = `GL_LINEAR_MIPMAP_LINEAR` for the highest quality scaling that GL can do. However that option is designed for 3D use cases where the mipmap level is changing over time or space. Since our wallpaper is not changing distance from us we can improve the rendering quality even more than `GL_LINEAR_MIPMAP_LINEAR`. To do this we now set `GL_TEXTURE_MAX_LEVEL` (if available) to limit the mipmap level or blurriness level to the lowest resolution (highest level) that is still equal to or higher than the monitor itself. This way we get the benefits of mipmapping (downscaling in hardware) *and* retain the maximum possible sharpness for the monitor resolution -- something that `GL_LINEAR_MIPMAP_LINEAR` alone doesn't do. Example: Monitor is 1920x1080 Wallpaper photo is 4000x3000 Mipmaps stored on the GPU are 4000x3000, 2000x1500, 1000x750, ... Before: You would see an average of the 2000x1500 and 1000x750 images. After: You will now only see the 2000x1500 image, linearly sampled. https://gitlab.gnome.org/GNOME/mutter/merge_requests/1003 |
||
---|---|---|
.gitlab/issue_templates | ||
.gitlab-ci | ||
clutter | ||
cogl | ||
data | ||
doc | ||
meson | ||
po | ||
src | ||
tools | ||
.gitignore | ||
.gitlab-ci.yml | ||
config.h.meson | ||
COPYING | ||
meson_options.txt | ||
meson.build | ||
mutter.doap | ||
NEWS | ||
README.md |
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 af 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.
The coding style used is primarily the GNU flavor of the GNOME coding
style
with some minor additions such as preferring stdint.h
types over GLib
fundamental types, and a soft 80 character line limit. However, in general,
look at the file you're editing for inspiration.
Commit messages should follow the GNOME commit message guidelines. We require an URL to either an issue or a merge request in each commit.
License
Mutter is distributed under the terms of the GNU General Public License, version 2 or later. See the COPYING file for detalis.