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

Only update unused modes when needed #3827

Merged
merged 1 commit into from Mar 2, 2024

Conversation

atomgomba
Copy link
Contributor

During review I discovered on the modes tab visible elements are updated every 50ms for no reason. This is a performance improvement to update the modes only when the "Hide unused modes" is toggled.

Copy link

sonarcloud bot commented Mar 2, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
3.0% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

Copy link
Contributor

github-actions bot commented Mar 2, 2024

Do you want to test this code? Here you have an automated build:
Betaflight-Configurator-Android
Betaflight-Configurator-Linux
Betaflight-Configurator-Windows
Betaflight-Configurator-macOS
WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!

@HThuren HThuren self-requested a review March 2, 2024 19:55
Copy link
Member

@HThuren HThuren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test with radio connected, an improtant case -> OK

@atomgomba
Copy link
Contributor Author

It has nothing to do with the outside world, it's merely a GUI thing. Channel value markers and mode on/off states are still updated unconditionally at every 50ms tick

@haslinghuis haslinghuis merged commit 67ce7fd into betaflight:master Mar 2, 2024
6 of 7 checks passed
@HThuren
Copy link
Member

HThuren commented Mar 2, 2024

It has nothing to do with the outside world, it's merely a GUI thing. Channel value markers and mode on/off states are still updated unconditionally at every 50ms tick

right, anyway test when mode value change do no harm

chmelevskij pushed a commit to chmelevskij/betaflight-configurator that referenced this pull request Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: COMPLETED
Development

Successfully merging this pull request may close these issues.

None yet

3 participants