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. Intel Xeon E5-1680 v3 & E5-2687W v3 Compared To The Core i7 5960X On Linux
  2. Intel 120GB 530 Series SSD Linux Performance
  3. Btrfs/EXT4/XFS/F2FS RAID 0/1/5/6/10 Linux Benchmarks On Four SSDs
  4. AMD's Windows Catalyst Driver Remains Largely Faster Than Linux Drivers
Latest Linux Articles
  1. Mesa 10.5-devel Brings Some Intel Haswell HD Graphics Changes Over Mesa 10.3
  2. NVIDIA vs. Nouveau Drivers With Linux 3.18 + Mesa 10.4-devel
  3. Is The Open-Source NVIDIA Driver Fast Enough For Steam On Linux Gaming?
  4. Linux 3.18 File-System Performance Minimally Changed But Possible Regressions
Latest Linux News
  1. ArrayFire Accelerated Compute Library Open-Sourced
  2. Amazon's Fire TV Stick: A Nice, Affordable Media Center Option
  3. Google Puts Chrome NPAPI Support On Final Countdown
  4. There's New In-Fighting Over The Future Of Compiz
  5. GTK+ Inspector Gains More Features Ahead Of GNOME 3.16
  6. Clang 3.6 Will Hopefully Have OpenMP Support
  7. A Go Front-End Could Soon Be Landing In LLVM
  8. Linux 3.18-rc6 Released, A Worrisome Regression Remains
  9. HandBrake 0.10 Brings H.265 & VP8 Encoders
  10. Gngr: A New Web Browser Focused On Privacy
Latest Forum Discussions
  1. Hurrican SDL Port
  2. Roadmap to Catalyst 14.10 ?
  3. how to configure module phoromatic ?
  4. PulseAudio 6.0 Is Coming & Other Linux Audio Plans For The Future
  5. Debian Developer Resigns From The Systemd Maintainership Team
  6. Updated and Optimized Ubuntu Free Graphics Drivers
  7. Cant get working Kaveri APU - A10-7850k
  8. Script for Fan Speed Control