IgeEntity

Method: streamSyncInterval

Gets / sets the stream sync interval. This value is in milliseconds and cannot be lower than 16. It will determine how often data from this entity is added to the stream queue.
streamSyncInterval (Number val, String sectionId)
  • Numberval Number of milliseconds between adding stream data for this entity to the stream queue.
  • StringsectionId Optional id of the stream data section you want to set the interval for. If omitted the interval will be applied to all sections.
Returns * "this" when arguments are passed to allow method chaining or the current value if no arguments are specified.

Set the entity's stream update (sync) interval to 1 second because this entity's data is not highly important to the simulation so save some bandwidth!

entity.streamSyncInterval(1000);

Set the entity's stream update (sync) interval to 16 milliseconds because this entity's data is very important to the simulation so send as often as possible!

entity.streamSyncInterval(16);
© Copyright 2013 Irrelon Software Limited. All Rights Reserved. UK Registered Company Number: 07522767
Isogenic (ī´sōjen´ik): Adj originating from a common source; possessing the same genetic composition.
Strange Things Happen at the One Two Point