On 04/04/2020, Carsten Haitzler <[email protected]> wrote:
> On Sat, 4 Apr 2020 16:08:32 +0200 Martin Guy <[email protected]> said:
>> When receiving a mouse move event, I'd like to be able to peek at
>> the queue of pending Evas events to see if there are any *other*
>> mouse-move events pending, so that I can react to the most recent -
>> otherwise my app redraws the screen at every pixel motion of teh
>> mouse, which can get horribly slow.
>
> you can't. there is no peek. the events are in the queue and will be
> processed
> in that order.
>
> instead don't DO the heavy work every event - use ecore_job to queue a job
Many thanks, that's perfect, and has helped me think about
restructuring the app so that it's motion will be more fluid in all
scenarios.
> even better .... use an animator.
Nice! Unfortunately the redrawing work it has to do is not simple
enough for such a handy mechanism, but it's good to know about that
too
Blessings
M
_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users