aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_x/xlib/ecore_x_vsync.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-07 14:27:07 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-07 14:27:07 +0900
commitc12875ccd34a3c15c988f0e261633b0d94c8c5a1 (patch)
tree6814fbe4a44a4f2d704656d4eb722630408a3332 /src/lib/ecore_x/xlib/ecore_x_vsync.c
parentevas-wayland-egl: Implement eng_gl_context functions (diff)
downloadefl-c12875ccd34a3c15c988f0e261633b0d94c8c5a1.tar.gz
ecore vsync - add getenv env var to disable vsync attempt
this is a quick try to allow testing and fixing of the vbox vsync kernel panic with ability to turn it off so debugging can be done
Diffstat (limited to 'src/lib/ecore_x/xlib/ecore_x_vsync.c')
-rw-r--r--src/lib/ecore_x/xlib/ecore_x_vsync.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/ecore_x/xlib/ecore_x_vsync.c b/src/lib/ecore_x/xlib/ecore_x_vsync.c
index a842f3071c..e8f2824f31 100644
--- a/src/lib/ecore_x/xlib/ecore_x_vsync.c
+++ b/src/lib/ecore_x/xlib/ecore_x_vsync.c
@@ -562,6 +562,14 @@ EAPI Eina_Bool
ecore_x_vsync_animator_tick_source_set(Ecore_X_Window win)
{
Ecore_X_Window root;
+ static int vsync_veto = -1;
+
+ if (vsync_veto == -1)
+ {
+ if (getenv("ECORE_NO_VSYNC")) vsync_veto = 1;
+ else vsync_veto = 0;
+ }
+ if (vsync_veto == 1) return EINA_FALSE;
root = ecore_x_window_root_get(win);
if (root != vsync_root)