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

ChartModule displaying wrong steps with fps=0 (Update) #21

Open
homeworksubmission opened this issue Dec 14, 2019 · 1 comment
Open

Comments

@homeworksubmission
Copy link

Describe the bug
The steps label in a generated chart starts to display wrong labels when pausing. E.g. It might display steps 3+ when the model is still computing step 1 (as seen from the python console). It also often displays repeated labels such as below.
image

Expected behavior
The chart should display the correct labels.

To Reproduce
Set the fps to 0 and then pause the module after awhile. The issue can be consistently reproduced.

Additional context
Setting the fps to 0 is to let the module run as fast as possible. This trick was mentioned by one of the other members and appears to work with SimpleCanvas and BarChart as far as I can tell from my own testing. On a related note, is there a simple way to modify the FPS beyond 20 without directly editing the library files?

@homeworksubmission
Copy link
Author

This issue appears occur when using continuous grid. It can be replicated in the boid_flockers model but not in the wolf sheep model.

@homeworksubmission homeworksubmission changed the title ChartModule displaying wrong steps with fps=0 ChartModule displaying wrong steps with fps=0 (Update) Dec 20, 2019
@rht rht transferred this issue from projectmesa/mesa Sep 1, 2023
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

1 participant