Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:3.2

Description

Description:Synchronizes time and FPS, so that each frame starts at the same defined time.

Note: The command only works with VBS IG. Otherwise, the following error appears: "Function externalSynchronization not implemented."

The command should be called once per second (on all computers, at the same time), to synchronize and correct any small discrepancies from the last synchronization.

Syntax

Syntax:ExternalSynchronization [time, fpsLimit, noSleep]
Parameters:
  • time: Number - Synchronized time.
  • fpsLimit: Number - Maximum FPS.
  • noSleep: Boolean - No sleep in the main thread. If true, fpsLimit is used for particle simulation. If false, a constant simulation step is performed (optional, default: true) (V3.4+).
Return Value:Nothing

Examples

Examples:
ExternalSynchronization [100,40]

Additional Information

See also: 
Multiplayer: 
Problems: 

Notes