Compositing With Metacity – An Early Look

Published on October 21, 2008 in Eye Candy by Ian McLean

When the compositing capabilities of Spiftacity merged into the Metacity trunk, it caused a fair bit of stir among GNOME users. Included in version 2.21.5 of GNOME, though hidden from casual users, the compositing showed a lot of promise but remained just something to play around with.

The recently released GNOME 2.24 includes the latest builds of Metacity, so, unless you’ve been compiling from tarballs yourself to stay at the bleeding edge, GNOME 2.24 will be the first taste mainstream users will be getting of the latest Metacity developments. While Metacity itself has seen its fair share of tweaking, the compositor, written by Iain Holmes and Thomas Thurman, has received a great deal of attention, so perhaps it’s time to take a second look at it.

Screenshot

Metacity’s compositor can be enabled in GNOME by launching gconf-editor (alt-F2, type ‘gconf-editor’ and hit enter), then navigating to apps/metacity/general and setting the key ‘compositing_manager’ to true.

Changes

The biggest change I’ve noted since the compositor’s previous incarnation is that the whole thing just feels a lot snappier. On my laptop’s Radeon Xpress 200M chip, which is by no means a high-performance card, windows move around just as smoothly as Metacity without compositing, and scrolling in Firefox is smooth and responsive. It performed equally well with both the open source Radeon driver, and the proprietary fgrlx driver.

Smaller developments include tweaking of windows’ drop shadows; they are now a bit wider than before, and change depending on whether the window is in focus or not. In previous versions, windows would turn to black squares when they were in the process of minimizing, but they now have reverted back to the classic ‘black wireframe’ of vanilla Metacity; which is uglier in my opinion, but since it’s purely a cosmetic difference as opposed to a functional one, it doesn’t really bother me.

Aesthetics

Keeping in line with Metacity’s ‘boring’ description, the compositor is extremely light on effects; the only things of note are the drop shadows under windows and menus, and the inclusion of window thumbnails when alt-tabbing. The thumbnails aren’t updated in real time a la Compiz Fusion, but they are an improvement from simple icons.

Screenshot

One thing to note, is that Metacity’s compositing is based on Xrender instead of OpenGL, which is lighter on resources and better from a compatibility perspective, but you shouldn’t ever expect to be getting cover-switching or getting ‘the cube’ which Compiz and Beryl became famous for. However, it is lightweight and it may just be what you need if you’re after running programs that rely on compositing, such as Avant Window Navigator.

My only real complaint is that, much like Metacity itself, the compositor is extremely sparse on configuration options. In fact, outside of forcing some certain changes with Xorg.conf, the compositor only appears to have two options; on and off. The defaults are fine, but there is zero room for tweaking unless you’re compiling it yourself. In addition to that, enabling it via gconf-editor is not exactly the most user-friendly way of going about things, though perhaps this is a complaint that is better levelled at the GNOME developers.

The Bottom Line

In its current incarnation, the compositing in Metacity is similar in feel and function to the compositing used in Xfce; it’s not particularly attractive looking, but it is extremely stable and performs well on lower-end systems. If you’re after features that only compositing can provide but aren’t after Compiz’ ultra-pretty but ultra-heavy management, you may have tried Metacity’s compositing already and been disappointed. However, the new version has dramatically stepped up on stability and performance, so once you’ve got your hands on GNOME 2.24 you may want to consider giving it another chance.

About Ian McLean

I'm an Australian born, currently Romanian based amateur web designer and writer, as well as aspiring musician, and connoisseur of free and open source software.

«

»

  • Dai
    u-foka: That is the Dust theme available from https://wiki.ubuntu.com/Artwork/Incoming/DustTheme
  • u-foka
    Hy!

    Can you please tell me the name of the theme you using on the screenshots, or please send it to me!

    Thanks!
  • hiks..hiks..
    thank you...

    use metacity and forget the compiz stuff!
  • A quick Digg request. An hour to go! "Compositing With Metacity - An Early Look". Please hit the digg button on the page: http://is.gd/4xor
  • Brandon
    Thank you! Nothing better than discovering hidden features in the tools that I work with every day. Keep up the good work, this blog has really been on my radar lately.
  • tallman
    Thanks for reminding about it. I have tried it on ubuntu hardy and it seems to be smoother on intrepid.

    PS
    Very nice blog!
  • Pau
    This is amazing!! I'm working with fedora rawhide at this moment and I've been having some problems with compiz. Using gnome compositing extension I finally was able to run avant-window-navigator without compiz.

    Thanks!
  • Does it rally work good with XPress 200M? Because that's all I have on this cheap laptop which is running Ubuntu 8.04! I am using the proprietary fglrx driver and compiz is medium fast, scrolling is really bad but after several hours it becomes really sluggish - I have to kill compiz.real replace it with metacity and run it again if you want.

    So these last months I am not using compiz at all (though I upgrade the driver when a new one comes out - helps a lot!) and using metacity. I really want a lightweight composite desktop which is able to run AWN and Screenlets, nothing else!

    Thanks for your post, man. Thanks a lot. This means I'll be looking into upgrading to Intrepid before it comes out :)

    I am really really grateful.

    Miladin
blog comments powered by Disqus