ecore_evas: change ECORE_EVAS_RENDER_SYNC to NOSYNC and non-default

Summary:
commit f9e6550468 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
This commit is contained in:
Derek Foreman 2016-03-24 12:15:57 -04:00 committed by Mike Blumenkrantz
parent 1a27f1274e
commit 0c388f386e
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ static Ecore_Evas *ecore_evases = NULL;
static int _ecore_evas_fps_debug = 0;
//RENDER_SYNC
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();
#ifdef BUILD_ECORE_EVAS_EWS