From d1e59accdb148aa9df4c95a8ba52078a7956d4ce Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 6 Oct 2020 20:05:44 +0200 Subject: shm: don’t cache buffers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit wbg typically only renders a buffer once. If we *do* need to re-render, it’s because something changed: the scaling factor, or a new monitor came online etc. Thus, there’s no point in caching buffers; it just uses up memory. --- main.c | 1 - 1 file changed, 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index 6777949..3d626e7 100644 --- a/main.c +++ b/main.c @@ -427,7 +427,6 @@ main(int argc, const char *const *argv) output_destroy(&it->item); tll_free(outputs); - shm_fini(); if (layer_shell != NULL) zwlr_layer_shell_v1_destroy(layer_shell); if (shm != NULL) -- cgit v1.2.3