Constructor NetworkTimeSystem
NetworkTimeSystem(double, double, double, double)
The constructor class for NetworkTickSystem
Declaration
public NetworkTimeSystem(double localBufferSec, double serverBufferSec = 0.05000000074505806, double hardResetThresholdSec = 0.2, double adjustmentRatio = 0.01)
Parameters
Type | Name | Description |
---|---|---|
double | localBufferSec | The amount of time, in seconds, the server should buffer incoming client messages. |
double | serverBufferSec | The amount of the time in seconds the client should buffer incoming messages from the server. |
double | hardResetThresholdSec | The threshold, in seconds, used to force a hard catchup of network time. |
double | adjustmentRatio | The ratio at which the NetworkTimeSystem speeds up or slows down time. |