From 46c13cd24cb868c21323dfd0b96b4ba4116a72fd Mon Sep 17 00:00:00 2001 From: Peter Hinch Date: Tue, 31 Aug 2021 08:54:15 +0100 Subject: [PATCH] writer.py: Add timing comments. --- writer/writer.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/writer/writer.py b/writer/writer.py index 2ad69a7..f83eff2 100644 --- a/writer/writer.py +++ b/writer/writer.py @@ -13,8 +13,10 @@ # Multiple Writer instances may be created, each rendering a font to the # same Display object. -# Timings based on a 20 pixel high proportional font, run on a pyboard V1.0. -# Using CWriter's slow rendering: _printchar 9.5ms typ, 13.5ms max. +# Timings were run on a pyboard D SF6W comparing slow and fast rendering +# and averaging over multiple characters. Proportional fonts were used. +# 20 pixel high font, timings were 5.44ms/467μs, gain 11.7 (freesans20). +# 10 pixel high font, timings were 1.76ms/396μs, gain 4.36 (arial10). import framebuf