adafruit / adafruit/Adafruit_CircuitPython_framebuf

framebuf.text() function is very slow

Open
#46 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
42
Forks
36
PR merge metrics
No merged PRs in 30d

Description

Printing just 10 characters with the default font on a RP2040 MCU takes long enough to visibly stall a realtime LED animation.
According to time.monotonic_ns(), 10 characters take 50ms, but I'm not sure if this is an accurate way to measure the delay.

Micropython does not have any issue keeping a high framerate rendering text. I'm not sure if the delay is because the CircuitPython implementation is because it is implemented in pure python or because it does file IO to read the font. If the file IO is the limiting factor, it would be a good idea to offer a RAM-based font option for platforms where that is not a significant limitation.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.