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 (Numberval, StringsectionId)
NumbervalNumber of milliseconds between adding stream data for this entity to the stream queue.
StringsectionIdOptional 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!