Skip to content

five-on-it / packages/net-client/src/clock / frameTicks

Function: frameTicks() ​

frameTicks(owed, tickSeconds): object

Defined in: packages/net-client/src/clock.ts:119

How many ticks a frame runs with owed seconds on its accumulator and ticks of tickSeconds, how many whole ticks beyond the backlog it drops, and what is left on the accumulator after both (see the module documentation).

Parameters ​

owed ​

number

tickSeconds ​

number

Returns ​

object

dropped ​

dropped: number

owed ​

owed: number

ticks ​

ticks: number