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

WTFTW: A Tiling Window Manager Written In Rust

The WTFTW project is an X tiling window manager written in Rust. The WTFTW name is short for Window Tiling For The Win. WTFTW is written against the latest Rust nightly code, with Rust 1.0 approaching next year. This tiling window manager can be easily tested in Xnest or Xephyr. Read more

Red Hat credits Q3 earnings win to cloud, big data strategies

Red Hat's CFO boasted the software company has achieved sequential revenue growth every quarter for the last 51 straight quarters. Read more

WordPress 4.1 and distraction free writing mode

WordPress 4.1 is out and one of its new features is a revised “distraction free writing mode.” I seem to remember that it had something like this before, but it was not as well implemented as it is in WordPress 4.1. Now, when you push the distraction free writing mode button, everything else fades away except what you need to write your post. Read more

today's howtos