aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-03-24 16:46:48 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-03-24 16:46:48 +0000
commit5c5f1d096c3a2a6cb8fb3dc5cb3efad5782c1d78 (patch)
tree6e1cd864ad1666d41d260764dc51086b58c2a91c /render.c
parentrender: bug: clear clip region before tinting the window (diff)
shm: scroll: implement offset wrap-around
* Impose a maximum memfd size limit. In theory, this can be 2GB (wl_shm_create_pool() is the limiting factor - its size argument is an int32_t). For now, use 256MB. This is mainly to reduce the amount of virtual address space used by the compositor, which keeps at least one mmapping (of the entire memfd) around. One mmapping *per terminal window* that is. Given that we have 128TB with 48-bit virtual addresses, we could probably bump this to 2GB without any issues. However, 256MB should be enough. TODO: check how much we typically move the offset when scrolling in a fullscreen window on a 4K monitor. 256MB may turn out to be too small. On 32-bit shm_scroll() is completely disabled. There simply isn't enough address space. * Wrapping is done by moving the offset to "the other end" of the memfd, and copying the buffer contents to the new, wrapped offset. The "normal" scrolling code then does the actual scrolling. This means we'll re-instantiate all objects twice when wrapping.
Diffstat (limited to 'render.c')
0 files changed, 0 insertions, 0 deletions