[PATCH weston] Make backends always specify output repaint time

Pekka Paalanen ppaalanen at gmail.com
Sun Apr 7 07:06:03 PDT 2013


On Sat, 6 Apr 2013 09:43:11 +0200
renoX <renozyx at gmail.com> wrote:

> Hello,
> 
> I don't understand why weston or the backends use gettimeofday instead of a
> monotonic time: doesn't this add work to all the clients to be able to be
> robust to time going into the past of things like that?

Yes, they should be using monotonic time. Using gettimeofday() can
be considered a bug, IMHO. But what is more important than using
monotonic time, is to use one clock domain consistently.

Clients should just assume monotonic timestamps in an arbitrary
clock domain.


Thanks,
pq


More information about the wayland-devel mailing list