[PATCH 8/8] clients: add presentation-shm demo
Pekka Paalanen
ppaalanen at gmail.com
Mon Sep 15 23:30:48 PDT 2014
On Mon, 15 Sep 2014 14:45:30 -0600
"Jasper St. Pierre" <jstpierre at mecheye.net> wrote:
> Why isn't this using xdg_shell?
Because I didn't bother porting it yet, it has been living in a
downstream branch for a long time. Xdg-shell is not stable, so I
didn't want re-port it every once in a while. This is hardly a use case
that matters for xdg-shell development, but it is essential for testing
Presentation. Xdg-shell does not interact with Presentation here, AFAIK.
IOW: I was lazy.
Once this stuff is merged, anyone is free to migrate it to xdg-shell,
and then anyone breaking xdg-shell is required to fix it. ;-)
It's also good to have some wl_shell users around, so we will notice if
it breaks. Hopefully. This is not using wl_shell enough to do that,
unfortunately.
Thanks,
pq
> On Mon, Sep 15, 2014 at 2:16 PM, Louis-Francis Ratté-Boulianne <
> lfrb at collabora.com> wrote:
>
> > From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
> >
> > 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]
> >
> > Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
> > Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb at collabora.com>
> > ---
> > .gitignore | 1 +
> > Makefile.am | 8 +
> > clients/presentation-shm.c | 866
> > +++++++++++++++++++++++++++++++++++++++++++++
> > 3 files changed, 875 insertions(+)
> > create mode 100644 clients/presentation-shm.c
> >
More information about the wayland-devel
mailing list