[PATCH weston] gears: Program gears rotation to run at 70 degrees per second.
Scott Moreau
oreaus at gmail.com
Wed Aug 1 12:07:08 PDT 2012
The classic glxgears implementation runs at 70 degrees per second but
weston gears client runs at about 45 degrees per second. This caused
weston gears appear to be running visually slower, even though the
frame rate is the same. Here we simply advance the gears rotation
angle by the same amount as glxgears so they appear to run at the
same speed.
---
clients/gears.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clients/gears.c b/clients/gears.c
index a622cda..e279752 100644
--- a/clients/gears.c
+++ b/clients/gears.c
@@ -232,7 +232,7 @@ frame_callback(void *data, struct wl_callback *callback, uint32_t time)
update_fps(gears, time);
- gears->angle = (GLfloat) (time % 8192) * 360 / 8192.0;
+ gears->angle = (GLfloat) (time % 5143) * 360 / 5143.0;
window_schedule_redraw(gears->window);
--
1.7.11.2
More information about the wayland-devel
mailing list