Language Selection

English French German Italian Portuguese Spanish

How XMir and Mir fit together

Filed under

For Ubuntu 13.10, Canonical are proposing to use Mir by default. Of course, this requires a certain amount of replumbing. X would normally be responsible for doing things like setting up the screen and pushing the pixels out to the hardware, but this is now handled by Mir instead. Where a native X server would allocate a framebuffer in video memory and render into it, XMir asks Mir for a window corresponding to the size of the screen and renders into that and then simply asks Mir to display it. This step is actually more interesting than it sounds.

Unless you're willing to throw lots of CPU at them, unaccelerated graphics are slow. Even if you are, you're going to end up consuming more power for the same performance, so XMir would be impractical if it didn't provide access to accelerated hardware graphics functions. It makes use of the existing Xorg accelerated X drivers to do this, which is as simple as telling the drivers to render into the window that XMir requested from Mir rather than into the video framebuffer directly. In other words, when displaying through XMir, you're using exactly the same display driver stack as you would be if you were using Xorg. In theory you'd expect identical performance - in practice there's a 10-20% performance hit right now, but that's being actively worked on. Fullscreen 3D apps will also currently take a hit due to there being no support for skipping compositing, which is being fixed. XMir should certainly be capable of performing around as well as native X, but there's no reason for it to be any faster.

rest here

More in Tux Machines

Docker 1.12.3 App Container Engine Updates Buildtags for Ubuntu 14.04 LTS ARMhf

Last week, we reported on the release of the second maintenance update to the stable Docker 1.12 series of the open source app container engine, and it now looks like Docker 1.12.3 has been released with more improvements and bug fixes. Read more

Ubuntu Snappy Core 16 Release Candidate 2 Out Now with Raspberry Pi 3 Fixes

Just one week after announcing the availability of the first Release Candidate (RC) build of the upcoming Ubuntu Snappy Core 16 operating system, Snappy developer Michael Vogt informed us about the release of the RC2 milestone. Read more

Travel-friendly Lemur Ubuntu Laptop Updated to Kaby Lake

We would like to introduce you to the newest version of the extremely portable Lemur laptop. Like all System76 laptops the Lemur ships with Ubuntu, and you can choose between 16.04 LTS or the newest 16.10 release. Read more Also: System76 Lemur laptop with Ubuntu gets a Kaby Lake upgrade

KNOPPIX 7.7.1 Distro Officially Released with Debian Goodies, Linux Kernel 4.7.9

Believe it or not, Klaus Knopper is still doing his thing with the KNOPPIX GNU/Linux distribution, which was just updated to version 7.7.1 to offer users the latest open source software and technologies. Read more