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. --- shm.h | 1 - 1 file changed, 1 deletion(-) (limited to 'shm.h') diff --git a/shm.h b/shm.h index 54d9674..08e2b8d 100644 --- a/shm.h +++ b/shm.h @@ -22,4 +22,3 @@ struct buffer { }; struct buffer *shm_get_buffer(struct wl_shm *shm, int width, int height, unsigned long cookie); -void shm_fini(void); -- cgit v1.2.3