summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-05-23 09:33:54 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-05-23 09:34:57 +0100
commit09ab8c9967512e67b721e59c9eabda2d887890c8 (patch)
tree5b9ef659a66499692883b13ac9e983154edaffa2
parent4a88067b2ee3a4ff368889323d5ed036ab16531e (diff)
ecore evas - tick printf debugs - disabled right now so no noise
this is here so it can be turned on and off to see what's happening with ticking and tick latency
-rw-r--r--src/modules/ecore_evas/engines/drm/ecore_evas_drm.c1
-rw-r--r--src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c13
2 files changed, 11 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 ca0f61413c..c8f0eb8c24 100644
--- a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
+++ b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
@@ -721,6 +721,7 @@ _cb_pageflip(int fd EINA_UNUSED, unsigned int frame EINA_UNUSED, unsigned int se
721 ecore_drm2_output_info_get(output, &x, &y, &w, &h, NULL); 721 ecore_drm2_output_info_get(output, &x, &y, &w, &h, NULL);
722 722
723 if (!edata->once) t = ecore_time_get(); 723 if (!edata->once) t = ecore_time_get();
724// printf("ECORE_EVAS: drm tick %1.5f @ %1.5f\n", t, ecore_time_get());
724 ecore_evas_animator_tick(ee, &(Eina_Rectangle){x, y, w, h}, 725 ecore_evas_animator_tick(ee, &(Eina_Rectangle){x, y, w, h},
725 t - edata->offset); 726 t - edata->offset);
726 } 727 }
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 0331c2a56c..9c079d9868 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,16 +37,23 @@ static void _ecore_evas_wl_selection_init(Ecore_Evas *ee);
37 37
38/* local functions */ 38/* local functions */
39static void 39static void
40_anim_cb_tick(Ecore_Wl2_Window *win EINA_UNUSED, uint32_t timestamp EINA_UNUSED, void *data) 40_anim_cb_tick(Ecore_Wl2_Window *win EINA_UNUSED, uint32_t timestamp, void *data)
41{ 41{
42 Ecore_Evas *ee = data; 42 Ecore_Evas *ee = data;
43 Ecore_Evas_Engine_Wl_Data *edata; 43 Ecore_Evas_Engine_Wl_Data *edata;
44 double t, rt;
45 static double pt = 0.0, prt = 0.0;
44 46
45 edata = ee->engine.data; 47 edata = ee->engine.data;
46 48
47 if (!edata->ticking) return; 49 if (!edata->ticking) return;
48 50 t = ((double)timestamp / 1000.0);
49 ecore_evas_animator_tick(ee, NULL, ecore_loop_time_get()); 51 ecore_loop_time_set(t);
52 rt = ecore_time_get();
53// 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);
54 ecore_evas_animator_tick(ee, NULL, t);
55 pt = t;
56 prt = rt;
50} 57}
51 58
52static void 59static void