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.

Windows
MacOS
Linux

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

Name Description

Public function Const

float

 

GetAvgLossPercentage()

The average loss percentage over the previous X StatPeriods

Public function Const

float

 

GetLossPercentage()

The loss percentage over the last StatPeriod

Public function

void

 

UpdateLoss

(
    int32 NbPacketsLost,
    int32 TotalPackets,
    int32 SampleCount
)

Update the packet loss based on total and lost packets

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss