Struct NetworkMetrics
Singleton component for Network and Time Related Metrics.
Implements
IComponentData
IQueryTypeParameter
Inherited Members
Namespace: Unity.NetCode
Assembly: Unity.NetCode.dll
Syntax
public struct NetworkMetrics : IComponentData, IQueryTypeParameter
Fields
CommandAge
The age of the command stream
Declaration
public float CommandAge
Field Value
Type | Description |
---|---|
float |
InterpolationOffset
Declaration
public float InterpolationOffset
Field Value
Type | Description |
---|---|
float |
InterpolationScale
Declaration
public float InterpolationScale
Field Value
Type | Description |
---|---|
float |
Jitter
Estimated jitter.
Declaration
public float Jitter
Field Value
Type | Description |
---|---|
float |
Rtt
Estimated round-trip time.
Declaration
public float Rtt
Field Value
Type | Description |
---|---|
float |
SampleFraction
Only meaningful on the client that run at variable step rate. On the server is always 1.0. Always in range is (0.0 and 1.0].
Declaration
public float SampleFraction
Field Value
Type | Description |
---|---|
float |
SnapshotAgeMax
Declaration
public float SnapshotAgeMax
Field Value
Type | Description |
---|---|
float |
SnapshotAgeMin
Declaration
public float SnapshotAgeMin
Field Value
Type | Description |
---|---|
float |
TimeScale
The average value for Time Scale
Declaration
public float TimeScale
Field Value
Type | Description |
---|---|
float |
Implements
Unity.Entities.IComponentData
Unity.Entities.IQueryTypeParameter