From 51bbf779ba2c9d5954e2c9470a8eae7c1ddd38a5 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Tue, 7 Jun 2022 13:47:35 +0100 Subject: Switch from using (E)GL to wl_shm. eglInitialize() is slow (~50-100ms), and uses a fair amount of memory (~100 MB). For such a small, simple program that just wants to launch as quickly as possible, wl_shm performs better. --- src/shm.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/shm.h (limited to 'src/shm.h') diff --git a/src/shm.h b/src/shm.h new file mode 100644 index 0000000..559ff5c --- /dev/null +++ b/src/shm.h @@ -0,0 +1,8 @@ +#ifndef SHM_H +#define SHM_H + +#include + +int shm_allocate_file(size_t size); + +#endif /* SHM_H */ -- cgit v1.2.3