This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch v-1.26.0
in repository efl.
View the commit online.
commit f95551b50b405c527adb387fde5a265b56e17a0e
Author: Carsten Haitzler <ras...@rasterman.com>
AuthorDate: Tue May 17 15:02:20 2022 +0100
ecore-x - use current time not vblank timestamp for animator time
sometimes on some systems and drviers time here is not what we
want/expect. it can be in the future. there are reasons so, work
around this and use the timestamp of "now" when we get the event as
opposed to the timestamp given to work around odd weirdnesses and
complaints time went backwards.
@fix
---
src/lib/ecore_x/ecore_x_vsync.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/lib/ecore_x/ecore_x_vsync.c b/src/lib/ecore_x/ecore_x_vsync.c
index f505193722..0f7a7368b2 100644
--- a/src/lib/ecore_x/ecore_x_vsync.c
+++ b/src/lib/ecore_x/ecore_x_vsync.c
@@ -382,7 +382,7 @@ _drm_vblank_handler(int fd EINA_UNUSED,
D(" @%1.5f vblank %i\n", ecore_time_get(), frame);
if (pframe != frame)
{
-#define DELTA_COUNT 10
+#if 0 // disable timestamp from vblank and use time event arrived
double t = (double)sec + ((double)usec / 1000000);
unsigned long long tusec, ptusec, tdelt = 0;
static unsigned int psec = 0, pusec = 0;
@@ -411,10 +411,15 @@ _drm_vblank_handler(int fd EINA_UNUSED,
}
}
_drm_fail_count = 0;
+ pusec = usec;
+ psec = sec;
+#else
+ double t = ecore_time_get();
_drm_send_time(t);
+ sec = 0;
+ usec = 0;
+#endif
pframe = frame;
- psec = sec;
- pusec = usec;
}
}
else
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.