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

Keep updating sidebar with AIM active #63575

Merged

Conversation

Kamayana
Copy link
Contributor

Add invalidate_main_ui_adaptor to AIM display

Summary

Interface "Keep updating sidebar with AIM active"

Purpose of change

Fixes #63368

Describe the solution

Implement's andrei8l's suggestion.

Describe alternatives you've considered

Testing

I did all of the steps I reported in that issue and saw that the sidebar was updating through all of it. Didn't notice any issues, in any sidebar layout. This change does increase ui_manager::redraw_invalidated()'s processing time from ~6ms to ~19ms, but updating the sidebar was bound to add some processing cost anyway, and it feels like an acceptably imperceptible increase to me. If I'm mistaken in that assumption let me know.

Additional context

Add invalidate_main_ui_adaptor to AIM display
@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) Info / User Interface Game - player communication, menus, etc. astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Feb 13, 2023
@Raikiri
Copy link

Raikiri commented Feb 15, 2023

Huge. Transferring vehicle cargo can take literally hours and not updating the minimap during that whole time can be disasterous.

@Rivet-the-Zombie Rivet-the-Zombie merged commit d24dd45 into CleverRaven:master Feb 15, 2023
@Kamayana Kamayana deleted the aim_keep_updating_sidebar branch January 9, 2024 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AIM messages usually aren't printed to sidebar until it's closed
3 participants