estimateViewStep
estimateViewStep(
__namedParameters,nowMilliseconds):number
Defined in: packages/engine/src/gameplay/replication/client.ts:454
The room’s step the streamed entities are drawn at, at nowMilliseconds
on the client’s clock: the room’s step now, less the half of the round
trip the last snapshot spent arriving, less the stretch it is drawn
over. With the snapshots landing a send interval apart, each is drawn
that stretch behind the last, so the step is exact; a snapshot that
lands late puts it off by the lateness.
ponytail: the whole stream’s step, where a buffer of snapshots per
entity would name each one’s own; the buffer that recordStreamedStarts
names would lift both.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
__namedParameters |
RoomSession |
nowMilliseconds |
number |
Returns
Section titled “Returns”number