clients: add presentation-shm demo

Graphics / Wayland / Weston - Pekka Paalanen [collabora.co.uk] - 30 September 2014 05:02 UTC

This started as a copy of simple-shm.c before it was converted to xdg_shell.

This demo excercises the presentation feedback interface in five different modes:

- A continuous repaint loop triggered by frame callbacks, and using immediate commits, just gathering presentation feedback and computing some time intervals for statistics.

- The same as above, except with 1s sleep before actually repainting as a response to frame callback. This tests how well the compositor can do a repaint from idle state (not continuously repainting), assuming nothing else is causing repaints.

- A continuous repaint loop triggered by 'presented' events rather than by frame callbacks. If Weston uses an appropriate scheduling algorithm, this mode achieves the smallest possible frame latency (below one output refresh period).

In all modes, all frames are pre-rendered at startup, so no rendering happens during the animation.

[Louis-Francis Ratté-Boulianne: split queuing feature]

ef2b592 clients: add presentation-shm demo
.gitignore | 1 +
Makefile.am | 8 +
clients/presentation-shm.c | 867 ++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 876 insertions(+)

Upstream: cgit.freedesktop.org


  • Share