3.8. Frame Rate

<frame_rate> ‐ The values of time and crowd steps, and frame rate.

3.8.1. Attributes

NameTypeDefaults
idSTRINGEmpty string
crowd_stepFLOAT1.0
minimal_interframe_latencyFLOAT40.0
interpolation_ refreshing_variationFLOAT0.01

3.8.2. Description

This element defines the values of the parameters that control the rendering speed, the crowd motion speed, and the minimal delay between two frames.

The float value of the crowd_step attribute defines the multiplicative factor of elementary linear motion of crowd agents at each frame. The float value of the minimal_interframe_latency attribute defines the minimal delay between two frames (in milliseconds). The actual delay can be longer if frame rendering takes longer than minimal_interframe_latency. The float value of the interpolation_refreshing_ variation attribute defines the threshold value of interpolator variation under which the update script attached to the interpolator is not executed.

3.8.3. Expected content

None.

3.8.4. Example

The example below defines 2 as multiplicative factor for agent linear motion, and a frame rate greater than or equal to 25 frames per second: Interpolation update scripts are only executed for interpolation variations above 0.03.

<frame_rate crowd_step="2" 
   minimal_interframe_latency="40" interpolation_refreshing_variation="0.03" />