ecore x vsync - if schedule fails, use fallback timeout to adapt faster
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sun, 24 Aug 2014 10:51:42 +0000 (19:51 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sun, 24 Aug 2014 10:51:42 +0000 (19:51 +0900)
src/lib/ecore_x/xlib/ecore_x_vsync.c

index d78973722a0d235338f788b646db34a559368430..992e81d755a02a0229ea304373776f1bc539f427 100644 (file)
@@ -226,7 +226,7 @@ _drm_tick_core(void *data EINA_UNUSED, Ecore_Thread *thread)
              int ret;
              struct timeval tv;
 
-             _drm_tick_schedule();
+             if (!_drm_tick_schedule()) _drm_fail_count = 999999;
              max_fd = 0;
              FD_ZERO(&rfds);
              FD_ZERO(&wfds);