C# 클래스 Fusion.Engine.Client.JitterBuffer

파일 보기 프로젝트 열기: demiurghg/FusionEngine 1 사용 예제들

공개 메소드들

메소드 설명
JitterBuffer ( Game game, long initialServerTicks ) : System

Creates instance of jitter buffer.

Pop ( long clientTicks, int playoutDelay, long latencyTicks, uint &ackCmdID ) : byte[]

Pops snapshot from the queue.

Pop ( long clientTicks, int playoutDelay, uint &ackCmdID ) : byte[]

Pops snapshot from the queue.

Push ( byte snapshotData, uint ackCmdID, long serverTicks, long clientTicks ) : void

Pushes snapshot to the queue.

비공개 메소드들

메소드 설명
Drift ( long current, long target, long up, long down ) : long

Drifts value to target with constant velocity.

ShowJitter ( int queueSize, long svTicks, long clTicks, bool push, bool pull, long delay ) : void

Shows incoming message jittering stuff

SignedDelta ( long sv, long cl ) : string
SlowDecay ( long current, long target, long decayRate ) : long

메소드 상세

JitterBuffer() 공개 메소드

Creates instance of jitter buffer.
public JitterBuffer ( Game game, long initialServerTicks ) : System
game Game
initialServerTicks long
리턴 System

Pop() 공개 메소드

Pops snapshot from the queue.
public Pop ( long clientTicks, int playoutDelay, long latencyTicks, uint &ackCmdID ) : byte[]
clientTicks long
playoutDelay int
latencyTicks long
ackCmdID uint
리턴 byte[]

Pop() 공개 메소드

Pops snapshot from the queue.
public Pop ( long clientTicks, int playoutDelay, uint &ackCmdID ) : byte[]
clientTicks long
playoutDelay int
ackCmdID uint
리턴 byte[]

Push() 공개 메소드

Pushes snapshot to the queue.
public Push ( byte snapshotData, uint ackCmdID, long serverTicks, long clientTicks ) : void
snapshotData byte
ackCmdID uint
serverTicks long
clientTicks long
리턴 void