From 0e330cfbe4979ccb395cc32d004081ea2155f500 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Fri, 1 Aug 2014 18:59:18 +0900 Subject: [PATCH] fix wakeups to not happen for now until i fix vsync --- src/lib/ecore_x/xlib/ecore_x_vsync.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/ecore_x/xlib/ecore_x_vsync.c b/src/lib/ecore_x/xlib/ecore_x_vsync.c index aeaeb68667..dbc32c039c 100644 --- a/src/lib/ecore_x/xlib/ecore_x_vsync.c +++ b/src/lib/ecore_x/xlib/ecore_x_vsync.c @@ -175,8 +175,11 @@ _drm_vblank_handler(int fd EINA_UNUSED, static Eina_Bool _drm_cb(void *data EINA_UNUSED, - Ecore_Fd_Handler *fd_handler EINA_UNUSED) + Ecore_Fd_Handler *fd_handler EINA_UNUSED) { + // XXX: move this to a thread whose only job it is to select on the drm + // fd and get the first vsync and send it back to the mainloop to wakeup + // and ignore the others sym_drmHandleEvent(drm_fd, &drm_evctx); return ECORE_CALLBACK_RENEW; } @@ -504,6 +507,8 @@ ecore_x_vsync_animator_tick_source_set(Ecore_X_Window win) { Ecore_X_Window root; +// XXX: disable vsync for now until i fix this + return EINA_FALSE; root = ecore_x_window_root_get(win); if (root != vsync_root) {