On Mon, Nov 8, 2010 at 7:47 PM, Gustavo Sverzut Barbieri
<barbi...@profusion.mobi> wrote:
> On Mon, Nov 8, 2010 at 7:21 PM, Rafael Antognolli
> <antogno...@profusion.mobi> wrote:
>> Hi guys,
>>
>> I have a problem implementing some timers inside WebKit. For some
>> animations, it adds a timer to relayout stuff, and this timer should
>> start in a few milliseconds, but this is smaller than the ecore
>> frametime. And timers added with ecore_timer_add just start on the
>> next main loop (when ecore will see that they expired).
>>
>> Does anyone have an idea of how to fix/workaround this?
>
> Ecore should just use frametime to register animators, not for regular timers.
>
> I fail to see why "And timers added with ecore_timer_add just start on
> the next main loop" is a problem. Ecore should sleep for that amount
> of time and return. If that time is quite small, the select() call
> will return mostly immediately.  You always have to call select()  in
> order to process the possibly ready file descriptors anyway.

But if you wake up ecore with an event, for example a mouse move
event, it will process this event and the expired timer just after it,
right?

>From my understanding, when you add a timer, if the time for that time
to expire is smaller than ecore frametime, ecore will take that
frametime to run the timer callback. I don't think that this is a
wrong behavior, I'm just looking for ideas on how to solve this (even
if what I need is a workaround inside webkit).

This makes things like this animation: http://bubblemark.com/dhtml.htm
be slower than they should be on the EFL port of webkit.

-- 
Rafael Antognolli
ProFUSION embedded systems
http://profusion.mobi

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to