From fefbd1c259c912fe126a5f34245a8b4c494cb753 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Wed, 14 Apr 2021 16:19:42 +0300 Subject: Progressive document rendering 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. --- src/app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/app.c') diff --git a/src/app.c b/src/app.c index 11c79bcb..bc15183a 100644 --- a/src/app.c +++ b/src/app.c @@ -906,7 +906,7 @@ void processEvents_App(enum iAppEventMode eventMode) { iApp *d = &app_; SDL_Event ev; iBool gotEvents = iFalse; - postCommands_Periodic(&d->periodic); + dispatchCommands_Periodic(&d->periodic); while (nextEvent_App_(d, eventMode, &ev)) { #if defined (iPlatformAppleMobile) if (processEvent_iOS(&ev)) { -- cgit v1.2.3