diff options
author | Phil Jones <philj56@gmail.com> | 2022-06-07 13:47:35 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-06-07 15:31:49 +0100 |
commit | 51bbf779ba2c9d5954e2c9470a8eae7c1ddd38a5 (patch) | |
tree | f2b52f0211f9052fefa64e23c6a0d81305391589 /src/shm.h | |
parent | 7562d7b539d8013376de2cff494231ba307f4ee1 (diff) |
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.
Diffstat (limited to 'src/shm.h')
-rw-r--r-- | src/shm.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 <stddef.h> + +int shm_allocate_file(size_t size); + +#endif /* SHM_H */ |