Slow performance
Symptoms:- Container builds very slowly
- Gazebo lags severely
- High CPU/memory usage
Allocate more resources
Docker Desktop (Windows/Mac)
Docker Desktop (Windows/Mac)
Linux
Linux
Resources are not limited by default on Linux. Check system availability:
Use software rendering
If GPU acceleration is causing issues or isn’t available:Optimize Docker on Windows
WSL 2 provides significantly better performance than Hyper-V on Windows.
Optimize Docker on macOS
VirtioFS provides faster file sharing between host and container.
Clean build cache
Stale build artifacts can slow down the workspace:Gazebo-specific performance
For Gazebo simulation performance issues:- Reduce physics update rate by modifying world files
- Disable shadows and anti-aliasing in Gazebo settings
- Use simpler world models (tb3_empty instead of tb3_house)
- Close RViz2 when not needed for visualization
Disk I/O performance
If disk operations are slow:- Don’t use network drives for the workspace
- Disable real-time antivirus scanning for Docker directories
- Use SSD storage instead of HDD if possible
- Reduce Docker Desktop disk image size if it’s grown very large
Container startup performance
If the container takes a long time to start:- The post-start script rebuilds the workspace on every start
- Consider commenting out the build step in
.devcontainer/post-start.shif you don’t need automatic rebuilds - Build manually only when needed with the
cbalias