-
Notifications
You must be signed in to change notification settings - Fork 906
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
Add Interactive Play Interval Control to Mesa Visualization #2540
base: main
Are you sure you want to change the base?
Conversation
Performance benchmarks:
|
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 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. |
Thanks a lot for this! I'll give @Corvince time to have another look but it seems ready to be merged. |
Summary
This PR adds a slider control to dynamically adjust simulation speed in Mesa's visualization interface. #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