summaryrefslogtreecommitdiff
path: root/src/ui/visbuf.h
AgeCommit message (Collapse)Author
2021-04-16VisBuf: Only draw buffers that are within boundsJaakko Keränen
One of the four buffers will be always outside the viewport.
2021-04-15Progressive document renderingJaakko Keränen
VisBuf now guarantees that all the buffers are sequentially ordered. This ensure complete utilization of all the buffers. Previously some buffers were not used at all, or allocated to the same origin as another one (!). DocumentWidget is able to progressively fill up a buffer while scrolling. After any change to the visible region has been detected (and there are no ongoing changes), prerender the remaining runs one at a time. This solves the issue where one text run would be always unnecessarily rendered while scrolling, even if the scroll distance was just one pixel.
2021-03-29VisBuf: Increase buffer size for scrolling; fixed glitchesJaakko Keränen
Instead of 1.5x coverage, the buffer now has a full 2x.
2020-09-12VisBuf: Method for marking textures as validJaakko Keränen
2020-09-12CopyrightJaakko Keränen
2020-09-12Separated VisBuf from ListWidgetJaakko Keränen
This will be used in DocumentWidget as well.