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

fix the real time factor + improve scheduler + improve status bar #106

Merged
merged 6 commits into from
Oct 8, 2020

Conversation

jbmouret
Copy link
Collaborator

@jbmouret jbmouret commented Oct 6, 2020

We were computing the real-time factor using the wall time instead of the iteration time. This means that if we were real-time but had one iteration slower than realtime, we could never catch up and reach a real-time factor of 1. Basically, to reach a real-time factor of 1, we needed many iterations faster than real time if we had been late in the past.

I switched to a real-time factor that corresponds to the iteration time, which corresponds better to what we want to know (I think).

By the way, if you log the iteration time, you will see that in graphics we often have iterations that last 14 ms (400 ms at the start), which do not come from the 'sync' mechanism (apparently). There is no problem in _plain.

@costashatz
Copy link
Member

@jbmouret is this ok to merge?

@jbmouret
Copy link
Collaborator Author

jbmouret commented Oct 8, 2020

Yes. I will do a different PR for the next changes.

@jbmouret jbmouret merged commit bf8955c into master Oct 8, 2020
@jbmouret jbmouret deleted the status_bar branch October 8, 2020 14:47
@costashatz costashatz added this to the RobotDART 1.0.0 milestone Oct 10, 2020
costashatz pushed a commit that referenced this pull request Dec 8, 2021
fix the real time factor + improve scheduler + improve status bar
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

Successfully merging this pull request may close these issues.

2 participants