Commit graph

9 commits

Author SHA1 Message Date
e72da82b32
meta: set vendored code manually
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964fbd3dbcc49825f381f980d3fd76e8766
2025-09-30 20:11:48 +03:00
d1116e7721
render: add OpenGL resource caching; optimize texture handling
Mildly improves rendering performance by caching OpenGL resources.
Namely:

- Cache shader program, VBO/EBO, and textures per output
- Automatically free image data after GPU upload
- Force RGBA format for consistent texture handling
- Track texture state across output changes
- Add texture invalidation on image changes

This reduces the memory usage by a solid 30MB, but it's still not quite
enough. I expect (or rather, hope) that we can cut it by half.

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964eebc783c5bc07b1fef7548a8d49f529c
2025-09-30 20:11:47 +03:00
3cbf6d5645
chore: add systemd service
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964d88b3de5f79306867e38dfbfef2ee1af
2025-09-30 20:11:46 +03:00
b47928cbab
meta: release under MPL v2.0
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964c2608feafccbc9ec9214a7bdb845dbb5
2025-09-30 20:11:45 +03:00
87d445340a
chore: set up Makefile for building
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964b70cec53a4e831118fabed1ecbd5c317
2025-09-30 20:11:44 +03:00
b4fcdab7f4
meta: correctly ignore corrected files
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964a2b8fd7724999f28432a8b12c6143e54
2025-09-30 20:11:43 +03:00
adc2bb2baf
meta: set up editorconfig
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964b4f245552027208a2650c8d60fa557a4
2025-09-30 20:11:42 +03:00
48fa1cc852
init nix tooling
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964a17ac94c2a40f0fd34f339a965abfc9a
2025-09-30 20:11:41 +03:00
fcc080871a
initial commit
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964ee9e6ebe436ca8328c6e4a7ec7c9d8d4
2025-09-30 20:11:40 +03:00