path: root/po/
diff options
authorDerek Foreman <>2018-01-30 17:06:48 -0600
committerDerek Foreman <>2018-01-30 17:09:52 -0600
commit90fecc7485b2cb8c4ac2d0a4a79f9dc761c51067 (patch)
treea77be90288e37fc32547f2badf43e819fa4defb4 /po/
parent879f248f0845be0163dbee0807a4eb859cf12786 (diff)
wl2_surface_dmabuf: Trim the buffer queue after a while
If we have more buffers than we need for 100 frames then drop the oldest. This can happen if we're on a hardware plane and then removed from it, or really whenever the compositor feels like holding onto a few frames. Trimming the queue too soon could result in having to do a costly full frame redraw, so we wait a while to make sure we don't need one again. Having more frames than we need costs us a little every draw since we always use the oldest available. It also wastes memory.
Diffstat (limited to 'po/')
0 files changed, 0 insertions, 0 deletions