Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-06-10 | Use doubles for harfbuzz glyph coordinates. | Phil Jones | |
Previously integers were used, effectively removing any sub-pixel positioning. | |||
2022-06-10 | Avoid an unnecessary copy of the image buffer. | Phil Jones | |
By pointing Cairo at the mmap-ed file used to create wl_shm buffers, we can eliminate a memcpy() on every draw, providing a decent speedup (especially for large window sizes). This comes at the expense of having to keep track of two Cairo contexts, one for each of our two buffers used for double buffering. Additionally, a single memcpy() is still required for initialisation of the second buffer, so the startup latency isn't affected much. | |||
2022-06-09 | Add Harfbuzz backend. | Phil Jones | |
Another source of slow startup is initialising Pango. If the user supplies a ttf file, we can skip any Pango stuff and use Harfbuzz directly with Cairo to do our font rendering, providing a large speedup. |