3 ms·
Most Wayland compositors track damage obsessively. If you turn on the paint debug overlay in Weston or something wlroots-based and start typing in e.g. gnome-te
by floatboth 7y ago
Most Wayland compositors track damage obsessively. If you turn on the paint debug overlay in Weston or something wlroots-based and start typing in e.g. gnome-terminal (with blinking cursor turned off), you'll see that only a single character is painted at a time.
Here's a good post: https://emersion.fr/blog/2019/intro-to-damage-tracking/ https://emersion.fr/blog/2019/intro-to-damage-tracking/
To do this with EGL, you need to eglSwapBuffersWithDamage(KHR|EXT) instead of just eglSwapBuffers: https://gitlab.freedesktop.org/wayland/weston/blob/23d01c67a320ab1920e4864f6d182bad93258112/clients/simple-egl.c#L127 https://gitlab.freedesktop.org/wayland/weston/blob/23d01c67a... (isn't it nice to have a GL API that's not terrible? :D)
I think I know how to do it, going to try soon. Bugzilled: https://bugzilla.mozilla.org/show_bug.cgi?id=1590586 https://bugzilla.mozilla.org/show_bug.cgi?id=1590586