[PATCH weston 1/5] headless: fix the output refresh rate

Pekka Paalanen ppaalanen at gmail.com
Thu Feb 12 05:30:13 PST 2015


From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

60 millihertz is a bit low, let's make it 60 Hz as it was supposed to
be.

When the new repaint scheduling algorithm gets implemented, this
fixes 'make check' taking almost 3 minutes instead of the normal 3
seconds, when running with 7 millisecond repaint window.

Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
---
 src/compositor-headless.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compositor-headless.c b/src/compositor-headless.c
index 1e6df9a..d4d25fa 100644
--- a/src/compositor-headless.c
+++ b/src/compositor-headless.c
@@ -128,7 +128,7 @@ headless_compositor_create_output(struct headless_compositor *c,
 		WL_OUTPUT_MODE_CURRENT | WL_OUTPUT_MODE_PREFERRED;
 	output->mode.width = param->width;
 	output->mode.height = param->height;
-	output->mode.refresh = 60;
+	output->mode.refresh = 60000;
 	wl_list_init(&output->base.mode_list);
 	wl_list_insert(&output->base.mode_list, &output->mode.link);
 
-- 
2.0.5



More information about the wayland-devel mailing list