[SOLVED] Simulation in Docker is Slow

Hi all.

I am facing an issue with the PX4 simulation inside Docker. It is noticeably slower than If I run the same setup on the host directly.

OS: Ubuntu 18
PX4: v1.10.1
Graphics card: Nvidia GTX 1650
Graphics card driver: 430.59
CUDA: 10.1

Any hints on how to get the simulation speed inside the container as it is on the host?


Are you certain to run on the correct GPU? It is possible that it runs on the Intel GPU or even the CPU.

You should use Nvidia Docker extension for the NVIDIA stuff to be working: https://github.com/NVIDIA/nvidia-docker

Thanks @AlexisTM ! It turned out to be a problem with my SDF file (see [SOLVED] Custom Quad Gazebo Model Runs with slow Real Time Factor)

Simulation works fine now from Docker.

1 Like