aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_x/xlib/ecore_x_vsync.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-12-24 17:35:27 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-12-24 17:36:03 +0900
commit38cb8fcbe0f0a38db70cf133bb85890d52102c92 (patch)
treeb05f03851bde9ee84a72fcbca0dbe90bad701439 /src/lib/ecore_x/xlib/ecore_x_vsync.c
parentedje: support anti_alias option (diff)
downloadefl-38cb8fcbe0f0a38db70cf133bb85890d52102c92.tar.gz
ecore x vsync - disable ecore_x vsync daemon due to unresolved problems
Diffstat (limited to 'src/lib/ecore_x/xlib/ecore_x_vsync.c')
-rw-r--r--src/lib/ecore_x/xlib/ecore_x_vsync.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/ecore_x/xlib/ecore_x_vsync.c b/src/lib/ecore_x/xlib/ecore_x_vsync.c
index bc4b70ebcd..435e173fb6 100644
--- a/src/lib/ecore_x/xlib/ecore_x_vsync.c
+++ b/src/lib/ecore_x/xlib/ecore_x_vsync.c
@@ -631,8 +631,10 @@ _drm_animator_tick_source_set(void)
+// disable gl vsync for now - nvidia doesnt work well.
+//#define ECORE_X_VSYNC_GL 1
-
+#ifdef ECORE_X_VSYNC_GL
static Ecore_Con_Server *vsync_server = NULL;
static Eina_Bool handlers = EINA_FALSE;
static Eina_Prefix *_prefix = NULL;
@@ -766,6 +768,7 @@ _glvsync_animator_tick_source_set(void)
}
return EINA_TRUE;
}
+#endif
// XXX: missing mode 3 == separate x connection with compiled in dri2 proto
// handling ala mesa (taken from mesa likely)
@@ -851,10 +854,14 @@ ecore_x_vsync_animator_tick_source_set(Ecore_X_Window win)
vsync_root = root;
#ifdef ECORE_X_VSYNC_DRM
if (mode == 1) return _drm_animator_tick_source_set();
+# ifdef ECORE_X_VSYNC_GL
else
+# endif
#endif
+#ifdef ECORE_X_VSYNC_GL
if (mode == 2) return _glvsync_animator_tick_source_set();
else return EINA_FALSE;
+#endif
}
return EINA_TRUE;
}