*

2D graphics Wayland/Weston optimizations on the Raspberry Pi

Posted on 23/05/2013 by Collabora

The Raspberry Pi Foundation has taken the computing world by storm with its Raspberry Pi minicomputer. The strong educational aspirations of the Raspberry Pi are just a part of why Collabora is glad to contribute to the pages of computing history being written by this groundbreaking credit-card-sized, ARM-based board. The Raspberry Pi seeks to inspire the current generation of young learners to hardware and software literacy.

The Raspberry Pi is also suitable for many embedded applications beyond education, as many commercial implementations have already demonstrated. In particular, its graphic processing abilities offer a wealth of possibilities which are now available for everyone to take advantage of.

Over a period of four weeks, Collabora has been working with the Raspberry Pi Foundation to enhance the graphic software stack for the Raspberry Pi.

A high-definition version of the video can be viewed here.

Solution benefits

  • Unleash the Raspberry Pi's graphics hardware's full capabilities and potential
  • Showcase the Raspberry Pi as a compelling multimedia platform
  • Improve system multitasking and multiprocessing performance
  • Operations offload to graphics hardware to deliver improved responsiveness
  • Demonstrate new Wayland/Weston capabilities, beyond legacy X11
  • Provide X11 client compatibility with even greater performance than running natively
  • Improve Weston's viability as a desktop platform
  • Demonstrate Weston's 2D composition abilities with the Raspberry Pi VideoCore

Revealing the graphics hardware's potential

Raspberry Pi has a high-performance, special-purpose graphic processing unit capable of handling overlays and compositing directly in the hardware, allowing the CPU to focus on other tasks. Although complete X.Org (X11) drivers exist, the limitations of the X stack are a serious performance impediment . The Raspberry Pi project was thus in need of a way to expose the true potential of the hardware through an improved software stack.

Collabora has been working with the Raspberry Pi Foundation to deliver an improved Weston backend, making full use of the Raspberry Pi VideoCore to offload as much graphics processing work as possible, reducing CPU and memory usage. Additionally, Collabora provided enhancements to further reduce the memory footprint of the system.

The overall result of Collabora's Wayland enablement initiative is a much faster and more fluid UI, consistently achieving 60 frames per second under typical load. The video case study shows the Raspberry Pi's performance whilst moving windows and displaying various UI animations—an area where X11 had proven to be unpredictably latent.

X11 applications, better than ever

Wayland's protocol and architecture allows it to serve X11 clients, through an emulated server. Improvements made to Weston as part of this engagement with the Raspberry Pi Foundation by Collabora enabled X11 applications to run seamlessly, running faster than under the legacy X.Org server.

Improved user experience

In addition to the various performance improvements, Collabora enhanced Weston's user interface by providing a window overview presentation mode, as well as various cosmetic enhancements, including fading animations.

Improved developer experience

Collabora also implemented a debug/benchmark mode to help evaluate the improvements made, especially those related to performance and memory consumption. Collabora performed quality assurance to validate both the software and Raspberry Pi hardware perform according to expectations.

All the work has been contributed upstream to the Wayland/Weston project. Improvements made as part of this project require no Raspberry Pi specific patches and will benefit the whole community, as the changes were confined to the compositor. Any improvements requiring changes to protocols were done in collaboration with the upstream community. Full source code has been released alongside Linux distribution packages.

They say:

"It's great to be working with Collabora to bring the hardware composition capabilities of BCM2835 to bear on both native Wayland and legacy X applications" said Eben Upton, a founder and trustee of the Raspberry Pi Foundation. "The resulting platform will form the centerpiece of the new Raspberry Pi user experience from the second half of 2013."

"It's exciting to see Collabora and the Raspberry Pi foundation work together on improving the Raspberry Pi user interface using Wayland and Weston. The result provides a great demonstration of how the Wayland architecture and the Weston implementation lets you mix rendering techniques and take advantage of special purpose 2D compositing hardware." — Kristian Høgsberg Kristensen, Wayland project lead.

Comments (0)


Add a Comment





Allowed tags: <b><i><br>Add a new comment:


Latest Blog Posts

WebKitGTK+ 2.14 and the Web Engines Hackfest

22/09/2016

Next week our friends at Igalia will be hosting this year’s Web Engines Hackfest. Collabora will be there! We are gold sponsors, and have…

Mainline Explicit Fencing – Part 1

13/09/2016

When it comes to buffer sharing synchronization in the kernel there are two ways of doing it: Implicit Fencing and Explicit Fencing. The…

Building Android for Qemu: A Step-by-Step Guide

02/09/2016

Developing Linux for Android on Qemu allows you to do some things that are not necessarily possible using the stock emulator. For my purposes…

Increased performance of emulated NVMe devices

23/08/2016

Nowadays, in Google Cloud Engine (GCE), it is possible to attach a local SSD with the NVMe interface to your virtual machine. Unfortunately,…

Thoughts about reviewing large patchsets

12/08/2016

I have recently been involved in reviewing some large feature patchsets for a project at work, and thought it might be interesting to discuss…

OpenGL 4.4 for Intel Linux Drivers

05/08/2016

For years the open source Linux OpenGL drivers have been playing catchup to the proprietary drivers and in the case of Intel hardware to…

About Collabora

Whether writing a line of code or shaping a longer-term strategic software development plan, we'll help you navigate the ever-evolving world of Open Source.

View the Korean version of Collabora.com

Open Since 2005

We use cookies on this website to ensure that you get the best experience. By continuing to use this website you are consenting to the use of these cookies. To find out more please follow this link.

Collabora Ltd © 2005-2016. All rights reserved. Website sitemap.