aboutsummaryrefslogtreecommitdiff
path: root/scripts/benchmark.py
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-07-15 17:19:31 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-07-15 17:19:31 +0000
commita486851bdd6bbf2fee9a5009c30770f22ca102ed (patch)
tree6b644cb3ff068f7b8f1f86337ba71b4471794abf /scripts/benchmark.py
parentwayland: win_destroy: unmap URL labels (diff)
shm: auto-purge when we have multiple buffers eligible for re-use
It may happen that we end up with multiple non-busy, same-sized buffers for the same cookie (context), and thus eligible for re-use. Before this patch, we would keep all those buffers around. This is completely unnecessary. Under normal circumstances, we’ll either be re-using a single buffer, or swap between two. In the second case, the “other” buffer is always busy, and thus not eligible for re-use. So, if we _do_ detect multiple, re-usable buffers, pick the one with the lowest “age” (increasing the chance of applying damage tracking, instead of re-drawing everything), and mark the other one for purging.
Diffstat (limited to 'scripts/benchmark.py')
0 files changed, 0 insertions, 0 deletions