Contents

maximumStepsPerUpdate

The maximum number of time steps that the simulation can advance each update.

Declaration

var maximumStepsPerUpdate: ClothSimulationComponent.MaximumStepsPerUpdate

Discussion

A higher number of time steps per update is more expensive in terms of power and performance. However, a lower number restricts the simulation’s ability to keep up with the targetClock.

As an example, if timeStep is 1.4 ms and maximumStepsPerUpdate is 13, then the simulation can perfectly follow targetClock up to delta times of 1.4 ms * 13 = 18.2 ms.

The automatic value differs based on the target platform. Must be a positive number.

See Also

Controlling simulation timing