uzh-rpg / flightmare

An Open Flexible Quadrotor Simulator
https://uzh-rpg.github.io/flightmare/
Other
942 stars 337 forks source link

Simulator very slow #122

Open brunopinto900 opened 3 years ago

brunopinto900 commented 3 years ago

Hello,

When i launch flightmare with "roslaunch flightros rotors_gazebo.launch" everything works fine, but the quadrotor moves very slowly and the simulator lags a lot. I can run AirSim on Unreal4 without lagging. I really want to use use flightmare on my racing drone project.

Here is my specs:

CPU: Intel Core™ i7, 2.80 GHz, Quad core GPU: NVIDIA® GeForce® GTX 1050 Ti 4GB RAM: 16 GB.

I am using WSL & Ubuntu 20.04.

Is there something i could do on my NVIDIA settings to increase the speed of the simulator? Or can i just use Unity on windows?

yun-long commented 3 years ago

Hi, did you change image size?

you can modify the image size here https://github.com/uzh-rpg/flightmare/blob/master/flightros/src/pilot/flight_pilot.cpp#L30-L31

also, make sure you didn't compile your code in Debug mode.

ali-alridha commented 4 months ago

I am facing the same issue, could you please tell what configurations we should use so that it runs smoothly?