Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logbox can be expensive #93

Open
Habbie opened this issue May 20, 2024 · 1 comment
Open

logbox can be expensive #93

Habbie opened this issue May 20, 2024 · 1 comment

Comments

@Habbie
Copy link
Member

Habbie commented May 20, 2024

sometimes we dump big blobs of JSON to the log. For the logger, those count as one line, and then the logbox gets "5 lines" which is actually a 1000 lines. It looks like wrapping/laying out/rendering this is very expensive for LVGL.

Observations:

  • removing the state.dump(2) log line from UIDummy::update shaves minutes off of startup time (on Toon1)
  • instead of that, making UILogBox::update do nothing has the same effect

The logbox should probably be hidden by default, perhaps with an icon that can tell you "something important just appeared in here". Further, maybe we should have a configurable loglevel for terminal output -and- one for the logbox.

@Habbie
Copy link
Member Author

Habbie commented Oct 4, 2024

Updating to LVGL 9/master has caused truncation of multiline messages to the first line, which makes everything faster :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant