![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <NetAnalyticsTypes.h>
Public Member Functions | |
| float | GetLossPercentage () const |
| float | GetAvgLossPercentage () const |
| void | UpdateLoss (int32 NbPacketsLost, int32 TotalPackets, int32 SampleCount) |
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.
|
inline |
The average loss percentage over the previous X StatPeriods
|
inline |
The loss percentage over the last StatPeriod
|
inline |
Update the packet loss based on total and lost packets