This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository efl.

View the commit online.

commit d8a05e26620c55bd7cf01d0c4a757d5076532303
Author: Carsten Haitzler <[email protected]>
AuthorDate: Tue Aug 9 09:50:50 2022 +0100

    ecore evas - wl - use loop time for anim tick not compositor timestamp
---
 .../engines/wayland/ecore_evas_wayland_common.c    | 27 +++++++++++-----------
 1 file changed, 14 insertions(+), 13 deletions(-)

diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
index 5f354a1bd8..3dc8c0b5b9 100644
--- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
+++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
@@ -37,29 +37,30 @@ static void _ecore_evas_wl_selection_init(Ecore_Evas *ee);
 
 /* local functions */
 static void
-_anim_cb_tick(Ecore_Wl2_Window *win EINA_UNUSED, uint32_t timestamp, void *data)
+_anim_cb_tick(Ecore_Wl2_Window *win EINA_UNUSED, uint32_t timestamp EINA_UNUSED, void *data)
 {
    Ecore_Evas *ee = data;
    Ecore_Evas_Engine_Wl_Data *edata;
-   double t;//, rt;
-   double tnow = ecore_time_get();
+//   double t;//, rt;
+//   double tnow = ecore_time_get();
    /* static double pt = 0.0, prt = 0.0; */
 
    edata = ee->engine.data;
 
    if (!edata->ticking) return;
-   t = ((double)timestamp / 1000.0);
-   if ((t - tnow) < -0.1)
-     {
-        fprintf(stderr,
-                "ecore_evas: _anim_cb_tick() -> tick too far in past - %1.5f sec behind\n",
-                tnow - t);
-        t = tnow;
-     }
-   ecore_loop_time_set(t);
+//   t = ((double)timestamp / 1000.0);
+//   if ((t - tnow) < -0.1)
+//     {
+//        fprintf(stderr,
+//                "ecore_evas: _anim_cb_tick() -> tick too far in past - %1.5f sec behind\n",
+//                tnow - t);
+//        t = tnow;
+//     }
+//   ecore_loop_time_set(t);
    /* rt = ecore_time_get(); */
    /* printf("ECORE_EVAS: wl client anim tick %p | %p - %1.5f @ %1.5f delt=%1.5f | %1.5f\n", ee, edata, t, ecore_time_get(), t - pt, rt - prt); */
-   ecore_evas_animator_tick(ee, NULL, t);
+//   ecore_evas_animator_tick(ee, NULL, t);
+   ecore_evas_animator_tick(ee, NULL, ecore_loop_time_get());
    /* pt = t; */
    /* prt = rt; */
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to