From ef2b592ad4b6503ed80e287fd0f2c3ae173a5e3e Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 23 Sep 2014 22:08:49 -0400 Subject: clients: add presentation-shm demo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Louis-Francis Ratté-Boulianne --- Makefile.am | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 87204a68..10be9209 100644 --- a/Makefile.am +++ b/Makefile.am @@ -393,6 +393,7 @@ demo_clients += \ weston-simple-shm \ weston-simple-damage \ weston-simple-touch \ + weston-presentation-shm \ weston-multi-resource weston_simple_shm_SOURCES = clients/simple-shm.c @@ -419,6 +420,13 @@ weston_simple_touch_SOURCES = clients/simple-touch.c weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS) weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la +weston_presentation_shm_SOURCES = clients/presentation-shm.c +nodist_weston_presentation_shm_SOURCES = \ + protocol/presentation_timing-protocol.c \ + protocol/presentation_timing-client-protocol.h +weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS) +weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm + weston_multi_resource_SOURCES = clients/multi-resource.c weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS) weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm -- cgit v1.2.3