Sites

Menu

NetStats Class

Namespace: Improbable.Gdk.Core.NetworkStats
GDK package: Core
Source

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.

Search results

Was this page helpful?

Thanks for letting us know!

Thanks for your feedback

Need more help? Ask on the forums