slint
slint copied to clipboard
Compute dirty region instead of re-drawing the while window for each frame
trafficstars
Currently, we redraw the whole window. We should limit ourselves to redraw regions that are actually dirty.
This also makes sense to do for the GL renderer. Even if all pixels are always rendered, not all of them need to be copied to the screen by the compositor. There's an EGL extension for that where at the time swapBuffers is called, a region is provided as argument, and the compositor will copy less pixels. Glutin supports that in the ContextWrapper.
The software rendered does that.