Skip to content

How to improve CPU/GPU utilization in Gazebo simulation calculations #2982

@cmeng-gao

Description

@cmeng-gao

Low CPU/GPU utilization in Gazebo Harmonic when simulating multiple sphere robots

Environment

  • OS: Ubuntu 22.04
  • CPU: Intel 14900
  • GPU: RTX 4060 Ti
  • Gazebo Version: Harmonic

Description

When testing physics simulation in a blank SDF world with hundreds of sphere robots falling from air to ground, I observed:

  • Very low Real-Time Factor (RTF) of 0.19
  • Only one CPU core being utilized
  • GPU remains completely idle

Expected Behavior

Gazebo should utilize multiple CPU cores and GPU resources effectively to improve simulation performance when handling large numbers of physics objects.

Current Behavior

Poor multi-core CPU utilization and no GPU usage results in severely degraded performance.

Steps to Reproduce

  1. Create a blank SDF world
  2. Spawn hundreds of sphere robot models
  3. Simulate them falling from air to ground
  4. Observe system resource usage (CPU/GPU) and RTF

Additional Information

  • Are there any configuration options to improve multi-core utilization?
  • Is GPU acceleration supported for physics calculations in Gazebo Harmonic?
  • Any workarounds to improve performance for mass object simulations?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions