mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-29 06:46:35 -04:00
render: code cleanup, log double buffering time
* Break out cursor cell dirtying to separate functions * Break out handling of double buffering * Handle buffers with age > 1 (we’re swapping between more than 2 buffers) * Detect full screen repaints, and skip re-applying old frame’s damage * Use an allocated array insted of a tll list for old frame’s scroll damage * When logging frame rendering time, including the amount used for double buffering.
This commit is contained in:
parent
a1d2044d75
commit
34becf0df0
3 changed files with 195 additions and 188 deletions
2
shm.c
2
shm.c
|
|
@ -103,7 +103,7 @@ buffer_destroy(struct buffer *buf)
|
|||
buf->pool = NULL;
|
||||
buf->fd = -1;
|
||||
|
||||
tll_free(buf->scroll_damage);
|
||||
free(buf->scroll_damage);
|
||||
pixman_region32_fini(&buf->dirty);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue