Add Interactive Play Interval Control to Mesa Visualization#2540
Merged
Add Interactive Play Interval Control to Mesa Visualization#2540
Conversation
|
Performance benchmarks:
|
Member
|
I like this PR, but I defer to @Corvince's view on it since he has been doing most of the work on the visualization stuff. |
Corvince
reviewed
Dec 10, 2024
Corvince
approved these changes
Dec 10, 2024
Contributor
Contributor
Author
|
@Corvince Thanks for the comments! You helped me realize an important point - the play_interval should be passed as a reactive object to controllers. Without maintaining its reactive nature, the controllers won't be able to dynamically update when the interval changes. I've tested the changes and confirmed that we can now adjust the simulation speed in real-time while the model is running. |
Member
|
Thanks a lot for this! I'll give @Corvince time to have another look but it seems ready to be merged. |
Contributor
|
Thanks again @AdamZh0u for this PR! Merged! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a slider control to dynamically adjust simulation speed in Mesa's visualization interface. Closes #2497
Motive
Implementation
Usage Examples
The play interval slider appears automatically in the Controls panel of any Mesa visualization, no additional configuration needed.
Additional Notes