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

fps issue #360

Open
deepakreddy63 opened this issue Aug 22, 2019 · 5 comments
Open

fps issue #360

deepakreddy63 opened this issue Aug 22, 2019 · 5 comments

Comments

@deepakreddy63
Copy link

deepakreddy63 commented Aug 22, 2019

Description of question or idea
I upgraded scenario runner to 0.9.6 from 0.9.5
I see that scenarios run faster in 0.9.6 version when compared to 0.9.5 and look like speedup version of that running in 0.9.5.
Is this an fps issue?
I saw that frame_rate option is added and set to 20 in scenario runner.py and also updated with each reload world.
If it gets updated with each reloadWorld, when we run a new scenario, how to maintain desired fps for simulator using config,py,
Also, the HUD when manual_control.py is run shows the server and client fps as varying and near to 60. Should anyone of them show 20 as we are setting the value to 20?

Expected behavior
Normal execution of scenario with no speedup.

Desktop (please complete the following information):

  • OS:Ubuntu 16.04
  • CARLA Version CARLA 0.9.6
  • Python version 3.6
  • Version 0.9.6
@fabianoboril
Copy link
Collaborator

Hi,

0.9.6 is faster than 0.9.5 (I think this was somehow related to the switch to Unreal 4.22). We have a synchronous mode on the roadmap for scenario runner, which would help to address your issue.

@matthewcoyle-cpc
Copy link
Contributor

Probably worth adding an fps command line argument

@deepakreddy63
Copy link
Author

deepakreddy63 commented Feb 3, 2020

Hi @fabianoboril ,

We would like to have this feature in scenario_runner as it will allow us to run the scenario at the desired speed. Sometimes scenario runs way faster and would wish to play at a slower speed in the manual control window.
Thanks !!

Hi,

0.9.6 is faster than 0.9.5 (I think this was somehow related to the switch to Unreal 4.22). We have a synchronous mode on the roadmap for scenario runner, which would help to address your issue.

@fabianoboril
Copy link
Collaborator

The synchronous mode works with agents (like in the CARLA challenge). If this is not what you need, you can take a look into the ScenarioManager code, where the main loop is called:
https://github.com/carla-simulator/scenario_runner/blob/master/srunner/scenariomanager/scenario_manager.py#L221
Here you can skip frames, or wait for frames, if you require this.

@deepakreddy63
Copy link
Author

Thanks for the reply.

I just have a question, Is the server FPS shown in manual_control.py HUD display related to the fps setting we set from config.py file. I don't see any change even after setting the fps to different values.

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

3 participants