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

Add play speed slider #6

Open
EwoutH opened this issue Nov 29, 2023 · 2 comments
Open

Add play speed slider #6

EwoutH opened this issue Nov 29, 2023 · 2 comments

Comments

@EwoutH
Copy link
Contributor

EwoutH commented Nov 29, 2023

A slider with which you can manipulate the number of steps per second (like NetLogo has) would be really useful.

Make sure if the simulation takes already a bit of time, the step delay isn't added to it, but just is the remainder.

Example: Simulation takes 50ms, and I want to display 10 steps per second. Then only 50ms should be added to get the 100ms desired.

In NetLogo:
Screenshot_289

@Corvince
Copy link
Owner

Corvince commented Dec 9, 2023

Let's see how we can implement this. So far I am not so happy with the simulation speed. It's super random for me, sometimes super slow and sometimes okay ish.

@EwoutH
Copy link
Contributor Author

EwoutH commented Dec 13, 2023

AgentPy has an implementation that modifies speed of visualisation, as can be seen in different examples including this one. Might be interesting for inspiration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants