discomfitor pushed a commit to branch master.


commit 0c388f386ec5595aa9403fb6729e26e03bbfcdef
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Thu Mar 24 12:15:57 2016 -0400

    ecore_evas: change ECORE_EVAS_RENDER_SYNC to NOSYNC and non-default
    commit f9e655046868cb83cbc9ac2dcd139e3540e89285 Changed the RENDER_SYNC
    the default behaviour (previously it was something you had to
    change source code to set that way)
    This leads to massive amounts of tearing with the drm and gl_drm backends,
    as they no longer wait for vblank before rendering.
    I've changed the env var to ECORE_EVAS_RENDER_NOSYNC and made it
    non-default as it used to be.  People can set the env var to disable
    frame limiting instead of having to set an env var to enable it.
    Frame limiting really should be the default behaviour.
    Reviewers: zmike, devilhorns
    Reviewed By: devilhorns
    Subscribers: cedric, jpeg
    Differential Revision: https://phab.enlightenment.org/D3829
 src/lib/ecore_evas/ecore_evas.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c
index 2ab7371..a4692ac 100644
--- a/src/lib/ecore_evas/ecore_evas.c
+++ b/src/lib/ecore_evas/ecore_evas.c
@@ -49,7 +49,7 @@ static Ecore_Evas *ecore_evases = NULL;
 static int _ecore_evas_fps_debug = 0;
-static int _ecore_evas_render_sync = 0;
+static int _ecore_evas_render_sync = 1;
 static Ecore_Animator *ecore_evas_animator = NULL;
 static Eina_Bool ecore_evas_animator_ticked = EINA_FALSE;
 static Eina_Bool ecore_evas_first = EINA_TRUE;
@@ -391,7 +391,7 @@ ecore_evas_init(void)
    ecore_evas_idle_enterer =
      ecore_idle_enterer_add(_ecore_evas_idle_enter, NULL);
    if (getenv("ECORE_EVAS_FPS_DEBUG")) _ecore_evas_fps_debug = 1;
-   if (getenv("ECORE_EVAS_RENDER_SYNC")) _ecore_evas_render_sync = 1;
+   if (getenv("ECORE_EVAS_RENDER_NOSYNC")) _ecore_evas_render_sync = 0;
    if (_ecore_evas_fps_debug) _ecore_evas_fps_debug_init();


Reply via email to