From f18c5e9a259c88f7bc3bbc9cf8afcf805ba00a60 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 13 Mar 2021 19:59:41 +0200 Subject: Text: Separate glyph caching procedure Previously glyph caching was done during text rendering, but that would mean lots of swapping between rendering stuff to the cache and then immediately afterward rendering to the display. There would be a swap per each new glyph. Now the entire document's glyphs are precached at once when a request is finished. Glyphs are also cached in larger batches when new text needs to be drawn. --- src/app.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/app.c') diff --git a/src/app.c b/src/app.c index f1ba2432..6261c74b 100644 --- a/src/app.c +++ b/src/app.c @@ -1050,6 +1050,10 @@ iBool isRefreshPending_App(void) { return value_Atomic(&app_.pendingRefresh); } +iBool isFinishedLaunching_App(void) { + return app_.isFinishedLaunching; +} + uint32_t elapsedSinceLastTicker_App(void) { return app_.elapsedSinceLastTicker; } -- cgit v1.2.3