NetworkStats.NetStats Class

Namespace: Improbable.Gdk.CoreSource

Storage object for network data for a fixed number of frames.

Notes

  • The underlying data is stored in a ring buffer.


Fields

DataPoint Source
DataPoint

Retrieves summary statistics for a given message type for the last numFrames frames.


Constructors

NetStats Source
NetStats(int sequenceLength)

Creates an instance of network stats storage with a specific size.

Parameters
  • int sequenceLength : The maximum number of frames to store data for at any given time.


Methods

SetFrameStats Source
void SetFrameStats(NetFrameStats frameData, Direction direction)

Sets the network statistics for a given direction for the current frame.

Parameters

SetFrameTime Source
void SetFrameTime(float dt)

Sets the frame time for the current frame.

Parameters
  • float dt : The frame time.

FinishFrame Source
void FinishFrame()

Finalize data capture for this frame.

Updated about a year ago


NetworkStats.NetStats Class


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.