https://github.com/clbr/dgen/commit/7bc7cb1d6342c7e7fbac415278f40cf48e30968e
This patch adds a very low-overhead recording option, several times faster than any capturing program. The frames are compressed with LZO and written raw, then converted to png with a multithreaded program afterwards.