diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-09-22 16:34:41 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-09-23 18:33:02 +0000 |
| commit | 4340f8a3b4c5149825d8f1786cfeb7a3af9c0e51 (patch) | |
| tree | 36aef5e127bcfe18aea8fd1a4be73597dc3e4208 /scripts | |
| parent | wayland: don’t crash with a division-by-zero when monitor dimensions are negative (diff) | |
render: fix application of old scroll damage when double buffering
On compositors that forces us to double buffer, we need to re-apply
the last frame’s damage to the current frame (which uses the buffer
from the next-to-last frame).
General cell updates are handled by simply copying from the last
frame’s pixman buffer to the current frame’s.
In an attempt to improve performance, scroll damage were up until now
handled by re-playing the last frame’s scroll damage (on the current
frame’s buffer). This does not work, and resulted in glitches when
scrolling in the scrollback.
This patch does the following:
* grid_render_scroll{,_reverse}() now update the buffer’s "dirty"
region. This means the generic copy-old-frames-buffer handles the
scroll damage (albeit in, potentially, a less efficient way).
* Tracking of, and re-applying old scroll damage is completely
removed.
Closes #1173
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
