1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

Avoiding Frame Jitter With GNOME's Mutter, Weston

GNOME

Published on 30 November 2012 12:29 PM EST
Written by Michael Larabel in GNOME
13 Comments

Owen Taylor has written a new blog post about avoiding jitter in composited frame display. Owen -- along with help from Kristian Høgsberg -- made improvements to the algorithm for compositor frame timing as used by GNOME's Mutter compositing window manager and also Wayland's Weston.

The basic algorithm up to this point was when receiving damage, a redraw should be scheduled immediately. If a redraw is scheduled and the system is still waiting for the previous swap to complete, a redraw should be done when the swap completes. This algorithm though doesn't work out ideally when showing content that runs at a fixed frame-rate that is less than the display's frame-rate, such as displaying video content at 24/30 FPS on a 60Hz display.

In the end the modified algorithm he came up with includes introducing a concept of "urgent" frames that can be marked by the application. Now when receiving damage, if it's part of an urgent frame, a redraw will be scheduled immediately. If it's not urgent, schedule a redraw for 2ms after the next VBlank. If a redraw is scheduled for time T and they're still waiting for the previous swap to complete at time T, redraw immediately when the swap completes. "I’m pretty happy with how this algorithm works out in testing, and it may be as good as we can get for X. The main downside I know of is that it only individually solves the two problems – handling clients that need all the rendering resources of the system and handling clients that want minimum jitter for displayed frames, it doesn’t solve the combination. The client that is rendering full-out at 24fps is also vulnerable to jitter from other clients drawing, just like the client that is choosing to run at 24fps. There are mitigation strategies – for example, not triggering a redraw when client that is obscured changes, but I don’t have a full answer. Unredirecting full-screen games definitely is a good idea."

Other possible approaches being evaluated for avoiding jitter in composited frame display include triple buffering with the compositor (though this could lead to wasted resources) or allowing applications to submit frames with their intended time frames. The later approach, however, wouldn't be good for X but could work nicely in a Wayland world.

Read the blog post at FishSoup.net.

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Linux Hardware Reviews
  1. Scythe Mugen MAX
  2. Intel Core i7 5960X Haswell-E On Linux
  3. Intel 80GB 530 Series M.2 SSD On Linux
  4. With A New Motherboard, The Core i7 5960X Haswell-E Lights Up
Latest Linux Articles
  1. RadeonSI Gallium3D vs. Catalyst At 4K UHD On Linux
  2. MSAA RadeonSI Gallium3D Performance Preview
  3. Intel Core i7 5960X CPU Core Scaling Under Linux
  4. AMD RadeonSI Gallium3D Performance For 4K Linux Gaming
Latest Linux News
  1. Eclipse IDE Starts Firing Up On Wayland's Weston
  2. OpenSUSE Announcement On SUSE's Recent Merger
  3. Valve Begins Publicly Tracking AMD Catalyst Linux Issues
  4. Digia Qt Spinoff Is Called "The Qt Company"
  5. GNOME 3.14 Makes More Progress In Running Natively On Wayland
  6. Minix 3.3 Released With Cortex-A8 ARM Support, NetBSD Userland Compatibility
  7. More Intel DRM Changes Queued For Linux 3.18, Including Old i830M Fixes
  8. New Code Starts Lining Up For X.Org Server 1.17
  9. Rust Developers Planning For The Rust 1.0 Language
  10. RPM 4.12 Brings New Switches, New Rpm2Archive Utility
Latest Forum Discussions
  1. Best Radeon for a Power Mac G5?
  2. Updated and Optimized Ubuntu Free Graphics Drivers
  3. New Group Calls For Boycotting Systemd
  4. support for first generation UVD blocks (RV6xx, RS780, RS880 and RV790)
  5. Nvidia joins the ranks of Apple and Microsoft
  6. Hd 6850
  7. nv and xorg.conf under Debian PPC
  8. X.Org Is Looking For Some Female Help