-
-
Notifications
You must be signed in to change notification settings - Fork 361
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
Replace StaticText with LVGL labels. #3310
Conversation
I did some timing tests with the simulator on my iMac. Time (in nanoseconds) to build the GVARS page:
While the libopenui changes certainly help, removing the StaticText and Window objects entirely from the GVarButton class gives the biggest improvement. |
Wow |
I've removed all the diagnostics. |
Did you test this with the NV14 simu? |
Oops - I was a bit too aggressive with the optimisation. Fixed now. |
😂👍 |
I've separated the style from the widget and used state to change the background colour and font size. |
The latest commit further improves the performance on the GVARS page. This improves the responsiveness when navigating between tabs - there is no longer a big delay on this page before you can move to another tab. |
Can you rebase this one for me... it looks like it will be a clean rebase, but if you do git won't assign dual authorship to the commits ;) Am I right in believing that this effectively supersedes #3307. And merging in EdgeTX/libopenui#88 shouldn't break anything in conjunction with this? Just double checking as it seems to all be working fine here 😇 |
…olor of selected flight mode.
Reduce the number of times the style_refresh state is changed.
I rebased to main; but it is showing a conflict with model_gvars.cpp - not sure what I did wrong? The libopenui PR should be fine. |
Ah, sorry, I'm an idiot... I didn't look at the target branch and was thinking it was to go into main, not Malte's speedup branch, 🤦 Ok, I'll just try something, and if that doesn't work, can go via that branch... maybe 😆 edit: Looks like that did what it should have, since this was rebased on main. |
gagarinlg chore(ui): improve static text and window base speed (EdgeTX#88)
Getting rid of the StaticText labels and using LVGL labels instead also improves the load time.