Oddbean new post about | logout
 Y'all, I made a neat fast path for GTK's OpenGL renderer today that allows you do do a trick very similar to what we did for texture rendering. At the core, it allows you to avoid GL program changes, but just useful to recolor things.

Mask(Texture, Color)

That takes texture's alpha channel and joins it w/ color from the color node.

https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/6460

This was needed to make box drawing fast in VTE. 
 The smooth line at the start is the real CPU usage. Everything new you see in this is from screencast recording/encoding.

https://cdn.fosstodon.org/media_attachments/files/111/186/038/720/317/450/original/b28eabb7059bc48d.mp4