Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Net
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/Net/NetAnalyticsTypes.h |
Include | #include "Net/NetAnalyticsTypes.h" |
Syntax
template<uint32 NbPeriodsForAverage>
struct TPacketLossData
Remarks
Calculates the current packet loss along with a rolling average of the past X updates Constructed with the number of samples you want to average over time.
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
float | The average loss percentage over the previous X StatPeriods | |
![]() ![]() |
float | The loss percentage over the last StatPeriod | |
![]() |
void | UpdateLoss
(
int32 NbPacketsLost, |
Update the packet loss based on total and lost packets |