Table of Contents

SetServerSimulationFrame

Methods
public void SetServerSimulationFrame(AbsoluteSimulationFrame frame, Ping ping)

Updates ServerSimulationFrame and recalculates TargetTimeScale. TargetTimeScale will be proportional to the distance from the client simulation frame to the server simulation frame. The first time this method is called, it will trigger Reset(AbsoluteSimulationFrame, bool), causing ClientSimulationFrame to reset to ServerSimulationFrame. Subsequent calls will only trigger Reset(AbsoluteSimulationFrame, bool) if the client frame has drifted away from the server frame by at least simulationFrameResetTreshold frames.

Parameters
Type Name Description
AbsoluteSimulationFrame frame
Ping ping