AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

Low fps with many cameras

Open anders-hopland opened this issue 8 years ago • 5 comments

I am building a simulator which is using 5 cameras. TThe framerate is around 30fps while rendering to screen, but when I´m sending it to the decision making engine, I can only get out 4fps. I think the bottleneck is moving data from GPU to CPU memory. Have someone encountered a similar problem, or have any ideas on how to solve this.

Thanks for your help!

anders-hopland avatar Jan 02 '18 13:01 anders-hopland

Which GPU and environment are you using? Also what is the resolution of your images? I'm able to get around 20 FPS with 3 cameras on small environments with TitanX at low resolution. Rendering multiple cameras are definitely very expensive because engine has to work that many times over. There is no way around it except you reduce image resolution and use top of the line GPUs.

sytelus avatar Jan 06 '18 01:01 sytelus

I'm using a GTX1070 on windows in a small environment. The cameras are 720p each.

anders-hopland avatar Jan 06 '18 10:01 anders-hopland

Are you referring to the Airsim API or the in game FPS? Do you know about any "hacky" solutions?

anders-hopland avatar Jan 08 '18 11:01 anders-hopland

I would suggest first try out 5 cameras with lower resolution (default). If that doesn't work then you have bigger issue. Then try to reduce cameras from 5 to 4 to 3. See which config gives you reasonable FPS. I'm able to use 3 cameras comfortably on TitanX in Blocks environment at default res.

sytelus avatar Jan 13 '18 01:01 sytelus

We have some good proposals here: https://github.com/Microsoft/AirSim/issues/796

We'll continue discussion in above thread.

sytelus avatar Feb 13 '18 08:02 sytelus