Module |
|
Header |
/Engine/Source/Runtime/Engine/Public/Net/NetAnalyticsTypes.h |
Include |
#include "Net/NetAnalyticsTypes.h" |
template<uint32 NbPeriodsForAverage>
struct TPacketLossData
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.
Name | Description | ||
---|---|---|---|
|
float |
GetAvgLossPercentage() |
The average loss percentage over the previous X StatPeriods |
|
float |
GetLossPercentage() |
The loss percentage over the last StatPeriod |
|
UpdateLoss |
Update the packet loss based on total and lost packets |