Instead of creating and destroying opengl textures for each window/pixmap each time, create textures and re-use them; never destroying them.
This is more efficient and leads to lower memory usage (nvidia leaks memory on texture create/destroy, on purpose).
https://git.dec05eba.com/phoenix/tree/TODO