TECHNOLOGY

Gazebo timing: numerical step size, target speed and observed speed are different

In this article
THE QUICK TAKE

A real-time-factor target controls pacing, while timestep changes the numerical transition; measured speed must come from observed simulation and wall intervals.

A slower host does not automatically change simulated physics

A twin runs below its intended real-time speed on a busy workstation. The operator increases max_step_size until the display looks responsive and reports the same simulation running faster. That change can alter numerical evolution, not just wall pacing. Identify which requirement failed: desired wall speed, numerical accuracy or a deadline for external interaction. They need different evidence. A completed simulated second taking longer in reality is not by itself proof that the integration timestep changed.

Read the configuration quantities separately

The SDF physics schema defines max_step_size separately from the target real_time_factor. A step size belongs to the simulated time discretization; a target ratio expresses desired progress relative to real time. Do not treat either configured value as a measurement of achieved runtime speed. Preserve the actual engine and supported parameter path because a schema field alone does not establish identical behavior in every backend or historical Gazebo implementation.

Trace target pacing and observed progress

In the inspected SimulationRunner source, stepSize advances simulation time during regular unpaused iterations. desiredRtf is a separate value used to derive the update period. The measured realTimeFactor is calculated from simulation-time and real-time differences and published as statistics. A target can remain unchanged while the measured factor drops under load. Conversely, changing the numerical step can change the experiment even if the measured factor happens to remain near its previous value.

Propose two independently labeled comparisons

A proposed comparison should first hold timestep and model fixed while observing wall performance under declared host load. Separately, a numerical sensitivity study can vary timestep while using a fixed simulated-time horizon and suitable state observables. Keep those results under different labels. Record pause and reset boundaries so elapsed intervals do not accidentally include incomparable periods. No Gazebo workload, accuracy study or throughput benchmark was executed here, and no speedup is inferred from the source.

Accept both a numerical and a timing record

Retain model and engine revision, step settings, desired factor, observed simulation-time progress and independently observed wall intervals. For external interaction, inspect data age and controller scheduling as additional conditions rather than assuming slower-than-target execution remains acceptable. A numerical convergence claim needs comparisons of physical observables; a pacing claim needs clock evidence. Neither follows merely from a GUI value, a configured target or a trajectory that looks smooth.

Keep execution speed separate from model validity

The CXL simulation guide illustrates another boundary between simulation evidence and a broader claim; software reproducibility supports preserving settings. Here acceptance distinguishes the actual time discretization from requested and achieved pacing. It does not validate contact physics, certify real-time control or predict another host’s performance. Those require separate numerical, physical and deployment evidence tied to the intended application.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles