From: Hosang Kim Date: Fri, 26 May 2023 07:07:49 +0000 (+0900) Subject: ecore_timer: set timer with current time when main loop is slow. X-Git-Tag: accepted/tizen/unified/20230608.164346^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F16%2F293416%2F1;p=platform%2Fupstream%2Fefl.git ecore_timer: set timer with current time when main loop is slow. Change-Id: I8eb1777b381489b903a5a774857a4dc7cd36e0f6 --- diff --git a/src/lib/ecore/ecore_timer.c b/src/lib/ecore/ecore_timer.c index a9f70f0..8740b1a 100644 --- a/src/lib/ecore/ecore_timer.c +++ b/src/lib/ecore/ecore_timer.c @@ -610,7 +610,7 @@ _efl_loop_timer_reschedule(Efl_Loop_Timer_Data *timer, double when) * is stopped in a debugger or IO and other handling gets * really slow within the main loop. */ - if ((timer->at + timer->in) < (when - 15.0)) + if ((timer->at + timer->in) < when) _efl_loop_timer_set(timer, when + timer->in, timer->in); else _efl_loop_timer_set(timer, timer->at + timer->in, timer->in);