Open cdbharath opened 4 years ago
@cdbharath There are a couple "tricks" you can do to get slightly higher frame rates.
Also, the FPS rate of Airsim is something under pretty active development by many working on this project. It has already gotten much better over the past couple months but still needs some improving.
@m1baldwin I tried all your suggestions
Are there any other ways? The recent FPS rate development are already pushed into the repository?
@cdbharath Thanks for the follow-up. Some of the improvements are in the main repo, but some have also been removed due to causing Urneal engine to fail. I think predominantly they were for the Unreal engine use cases so not sure how much they will help you. I'm not familiar with using Unity in this case.
Duplicate (sort of) of #2026
@cdbharath There are a couple "tricks" you can do to get slightly higher frame rates.
- change the "ViewMode" setting in the settings.json file to "NoDisplay". You won't be able to watch the simulation in the view port, but I think this allows you to get slightly more out of the FPS.
- I have seen that I get higher FPS when I have the UE Editor in the foreground. If I minimize it, I see it drop. Maybe this is something you can play with?
- Decrease the resolution of your camera a bit, if you can afford it.
- Try getting the image as an uncompressed RGB image, and then convert to a numpy array and do what you need with it. Getting the uncompressed image and then converting might be more efficient in the image retrieval process than requesting the already compressed images.
@m1baldwin Thanks for your advice but for 4, how to get the uncompressed RGB image? Simply by modifying as 'Recording: Cameras: Compress: false' in settings.json
?
@ICYPOLE point 4 is if you are requesting the images via the python API. There are flags in the image request api you can set to change whether the image returned is compressed or uncompressed
Haven't tested the setting in the settings.json file but maybe that has a similar effect
There are some programming examples on this page to get compressed or uncompressed images: https://microsoft.github.io/AirSim/image_apis/#python_1
After running some tests with the image_benchmarker.py script, there doesn't appear to be any significant difference in performance after applying #4147, so I am reopening this issue.
I am trying to apply image processing techniques on image stream received from simGetImage API. I want an image stream of 30 fps. But the image stream I get from simGetImage gives an fps of 10-12. The simulation fps (50 fps) is good when simGetImage API is not used.
My code (ROS wrapper):
OS : Ubuntu 18.04 Game Engine : Unity 2020.1.4f1
Other answers I saw were mostly related to projects depending on Unreal Engine (as opposed to mine)
I want my camera fps to be equal to or more than 30 fps. How do I achieve this?