summaryrefslogtreecommitdiff
path: root/src/periodic.h
AgeCommit message (Collapse)Author
2021-04-30CleanupJaakko Keränen
A missing license banners and pragmas.
2021-04-29Periodic: Handling removal during iterationJaakko Keränen
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-20App: Periodic commands without timers/threadsJaakko Keränen
Now the periodic commands get posted on the main thread at intervals, and the event loop cooperates by not sleeping if there are periodic commands pending. The macOS animation hangup seems to be unrelated, though — perhaps some internal SDL/Metal machinery related to app refresh stopping for a while?
2021-03-20Periodic: Use a thread instead of timersJaakko Keränen
This still doesn't solve the strange refresh time issue. Perhaps it's better to find a solution that doesn't rely on background threads.
2021-03-18Scrollbar fading and periodic commandsJaakko Keränen
Added a new mechanism to issue periodic but not per-frame commands. This is used for main-thread operations like checking if it's time to fade away the scrollbars. Scrollbars are faded away completely on Apple platforms. Adjusted list right margins accordingly.