slint icon indicating copy to clipboard operation
slint copied to clipboard

Compute dirty region instead of re-drawing the while window for each frame

Open ogoffart opened this issue 4 years ago • 1 comments
trafficstars

Currently, we redraw the whole window. We should limit ourselves to redraw regions that are actually dirty.

ogoffart avatar Feb 05 '21 09:02 ogoffart

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.

tronical avatar Apr 19 '22 13:04 tronical

The software rendered does that.

ogoffart avatar Nov 29 '22 09:11 ogoffart