Currently working on the drawing library and there are so many special cases tha...

@lhp@mastodon.social

Currently working on the drawing library and there are so many special cases that can have a highly optimized path. And it's not just hypothetical efficiency; it literally makes the difference between window resize being smooth or jittery[1].

The unoptimized path of the library is based on the concept of colour sources which provide an ARGB-8888 colour for a given (x,y)-coordinate.

[1] real application should use single-pixel-buffer for the background surface and shm buffers only for content