summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorManuel Stoeckl <code@mstoeckl.com>2021-06-26 12:54:38 -0400
committerSimon Ser <contact@emersion.fr>2021-07-19 11:41:24 +0200
commitf71957fce7f54ee88df75cd5f0d77cc20d518890 (patch)
tree2097ab7a48d8d958d3010551c30c523f85779f83 /README.md
parent69827e97dbdee569f0e0987cf6e24acb48217301 (diff)
downloadswaybg-f71957fce7f54ee88df75cd5f0d77cc20d518890.tar.gz
swaybg-f71957fce7f54ee88df75cd5f0d77cc20d518890.tar.bz2
Load images on every frame render
This change keeps the full-size cairo_surface_t objects unloaded until they are needed to produce buffers for the outputs' surfaces. This can slow down background rendering when output scales or sizes change, or when a new output is created; in exchange, it significantly reduces the amount of memory that swaybg must retain while it is not rendering something. To reduce peak memory usage, dirty outputs are redrawn drawn in batches grouped by which image they use. This ensures at most one image is loaded at a time.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions