diff options
author | Manuel Stoeckl <code@mstoeckl.com> | 2021-06-26 12:54:38 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-07-19 11:41:24 +0200 |
commit | f71957fce7f54ee88df75cd5f0d77cc20d518890 (patch) | |
tree | 2097ab7a48d8d958d3010551c30c523f85779f83 /README.md | |
parent | 69827e97dbdee569f0e0987cf6e24acb48217301 (diff) | |
download | swaybg-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