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

Low FPS capturing while not using resources #4973

Open
reza-shahriari opened this issue Jul 20, 2024 · 1 comment
Open

Low FPS capturing while not using resources #4973

reza-shahriari opened this issue Jul 20, 2024 · 1 comment

Comments

@reza-shahriari
Copy link

reza-shahriari commented Jul 20, 2024

Bug report

  • AirSim Version/#commit: Colosseum
  • UE/Unity version: UE 5.27
  • autopilot version: -
  • OS Version: windows 10

What's the issue you encountered?

Settings

setting Gist

How can the issue be reproduced?

Hi
i am using Airsim to simulate drones(actually tow drones in an env)
everything works well but the problem is when i capture images from the camera. i have a simple environment and a strong computer but arisim capturing about 5 images per second while i need at least 30!
not many resources are in use while running the project and capturing data:
2024-07-20_17-12-51

i dont know how i can improve the performance of the airsim! i used NoDisplay, changed SubWindows, and turned them off I also tested Python API but all are slow. i know i can add some sleep to my code then i can get the fps i wanted but for capturing a 10min video i should spend 60min then!

i have tested some other way to capture images from unreal. i mean just screenshotting or using a custom camera and rendering its view. both worked real time for me! and both were using more resources. i was trying to change this code to a faster way or at least make it just screenshotting to see if it works but did not work at all:(

do you have this problem too? Has anyone solved it?
thank,

@UnrealOrReal-Jack
Copy link

What a nice work you are doing. i have the same problem here!
would you try this and tell me if it works?
it seems you can use opencv to render images and its working realtime in the video.
i am not experimented enough to do it but it would be nice if you do and tell me if its working :)
hope that helps
-Jack

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

2 participants