-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Performance impact after simGetImages() finished #2389
Comments
Just to confirm, you've stopped the simGetImages loop and the game still runs at 1 FPS? |
@saihv basically I have one loop that captures 640x480 images. There is one condition if it is met it gets one high res image from the other camera. After that the condition is not triggered and the loop should run normal. But it does not. |
@saihv I have created a minimal example to reproduce the issue.
To be clear: the high res capture does work and produces a correct image - I just can't explain the performance impact afterwards: bash-4.4# python3 demo.py 172.17.0.2 |
What I have noticed is this message on the airsim side:
I guess that results in some configuration that might cause the performance impact due to not being changed back? |
@saihv this seems to be a general issue that the performance will always be degraded in relation to the highest resolution used via the API. |
@saihv do you have any pointers on how to solve this? |
I have seen behavior like this due to the camera being activated upon capturing an image, but then never being deactivated. |
@ironclownfish I actually only use the API and run AirSim headless. There is no window to toggle something. I never seen anything in the API referring to the notion of activating/deactivating a camera. Do you have any pointers to more information on that? |
@ironclownfish If not, could you please remove the 'fix proposed' tag? - that would increase the likelihood that someone takes a look at the issue :) |
@saihv do you have any insight on how to enable/disable a camera via API (see @ironclownfish response)? |
I've looked through the code and it seems there's no way to disable a camera via the API in headless mode. |
@ironclownfish thanks. That sounds promising! Currently I would not know how (where) to implement that though. Currently it seems that the overall performance degrades to the highest resolution camera used in any client application. I am a bit baffled that nobody else seem to have a performance problem. |
@petergerten Do you have a settings file to go alongwith this? Will try to reproduce and then maybe add API for disabling the camera |
Opened #2465 which closes this |
Hi,
I have a camera with 640x480 resolution configured and use simGetImages() in a loop getting ~40fps.
All good.
Now I added a second camera with all the same characteristics but a very high resolution: 5000x4000.
This is to mimic a still image function.
After I call simGetImages() on the high res camera once, the main camera loop framerate drops from ~40 fps to ~1fps.
While a drop during high-res image capture is expected - it never recovers from this and stays at ~1 fps.
Does anybody has an idea what is happening here?
Peter
The text was updated successfully, but these errors were encountered: