A GTK 4 application showing an empty window uses about 160 MB of RAM:
$ wget https://movq.de/v/138ab3e622/win.c
$ cc -Wall -Wextra -o win win.c $(pkg-config --cflags --libs gtk4)
$ ./win
It also takes several seconds to start on my machine because it is compiling shaders and initializing DRI (it’s faster on the second run, unless you happen to lose ~/.cache/mesa_shader_cache/
). This might be a hint as to why it’s using so much memory: There’s obviously much more going on behind the scenes these days, not just a little bit of internal housekeeping and then creating a window.
I was reading something to make a little pause from work. I saw a gnat on the screen. I thought ‘wow imagine how’s it perceiving the screen-space world’. So I went on and browsed Shadertoy for an hour LoL #shader #visual #trip #psychedelic #coding
#makeartnotwar #GLSL #shaders code at https://www.shadertoy.com/view/fs2fRm if you want to use it
#event Upcoming Workshop / algolab: Visuals and Live Coding @ CPH Music Maker Space / facebook event