UserData

class UserData(frameDurationNs: Duration, val totalDriftCache: TimeOffsetCache, var receivedDataNs: Long = 0, var totalDrift: Duration = Duration.ZERO, var lagLeeway: Duration = Duration.ZERO)

Constructors

Link copied to clipboard
constructor(frameDurationNs: Duration, totalDriftCache: TimeOffsetCache, receivedDataNs: Long = 0, totalDrift: Duration = Duration.ZERO, lagLeeway: Duration = Duration.ZERO)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun calculateLagForUser(nowNs: Long, lastFrameNs: Long)
Link copied to clipboard
fun reset()