derekf pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=e9b7844bb8d6427a804db314872eb935635f40e8

commit e9b7844bb8d6427a804db314872eb935635f40e8
Author: Derek Foreman <[email protected]>
Date:   Wed Mar 21 15:03:55 2018 -0500

    ecore_drm2: Improve early tick logic
    
    We should only have to actually force a tick if we can't set up
    the tick job, as the evas changed callback or a following render
    from the tick job's tick will cause a flip.
    
    Should remove a potential for a missed tick near the start of
    ticking.
---
 src/modules/ecore_evas/engines/drm/ecore_evas_drm.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c 
b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
index 89c5cb5f46..5aefe157ac 100644
--- a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
+++ b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
@@ -827,11 +827,10 @@ _drm_animator_register(Ecore_Evas *ee)
                                        + ((double)usec / 1000000);
              edata->tick_job = ecore_job_add(_tick_job, ee);
           }
+        else
+          ecore_drm2_fb_flip(NULL, edata->output);
      }
 
-   if (!ecore_drm2_output_pending_get(edata->output) && !ee->in_async_render)
-     ecore_drm2_fb_flip(NULL, edata->output);
-
    edata->ticking = EINA_TRUE;
 }
 

-- 


Reply via email to