wayland_shm: Return oldest buffer for new renders
authorDerek Foreman <derekf@osg.samsung.com>
Wed, 8 Nov 2017 20:15:52 +0000 (14:15 -0600)
committerDerek Foreman <derekf@osg.samsung.com>
Wed, 8 Nov 2017 21:12:51 +0000 (15:12 -0600)
commita5c7fbd006b5e4e578e2a938a609c2aa79315fc2
tree8b78871b707bf8ba74851ed493086a254289ace7
parent4adf87ae91e56a97fa85694855d90e08c41b83e2
wayland_shm: Return oldest buffer for new renders

This is what the old shm code has been doing, and it's probably better
than what the dmabuf code was doing.

We currently allocate 3 buffers.  The usual case has us swapping between
two of those buffers and saving that third buffer for emergencies - if
we ever need that third buffer it'll require a full redraw.

If we return the oldest available buffer the usual case requires a little
more damage but we should never hit the full redraw case, which can cause
a frame drop on slow hardware.
src/modules/evas/engines/wayland_shm/evas_dmabuf.c