-
Notifications
You must be signed in to change notification settings - Fork 165
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
How to improve the frames per second in gym_torcs.py #31
Comments
I am also having this same issue. Control updates are getting sent at 5Hz which seems excessively slow |
Hi, the same issue here. Any workaround for now? |
If you don't need to use the gym-torcs environment specifically, I found using the SCRC patch on TORCS and the Snakeoil Python client together worked very nicely, I get 20Hz game state and control input. See my repo for code: https://github.com/kschan/torcs_scripts Sorry if the code is not very clean. |
Hi, @kschan , thanks for your work! |
Not via my code! I bet you could do something clever though. |
Oh, I'll try to figure it out. BTW, vtorcs-RL-color already has scr-patch applied. I did some profiling, and the most time-consuming part of the code is:
which is called at line 168 in snakeoil3_gym.py. It takes about 180 ms to complete. @yanpanlau , @ugo-nama-kun , do you have any ideas about this? |
Well, I have figured it out. I got sustainable results with RCM_MAX_DT_ROBOTS of 0.05. If I make it less, TORCS eventually freezes. And, here it is! As for me, it is really good result! |
Hi,
I am working on the new projects in gym_torcs which requires faster frames per second. I found that in
which calls line 122-124 in gym_torcs.py
is very slow. the 2 lines above took 0.2 seconds (so 5 fps)
Do you know if there is anyway I can improve the fps?
Thanks,
Ben
The text was updated successfully, but these errors were encountered: