FNetworkPredictionSerialization

Windows
MacOS
Linux

References

Module

NetworkPrediction

Header

/Engine/Plugins/Runtime/NetworkPrediction/Source/NetworkPrediction/Public/NetworkPredictionSerialization.h

Include

#include "NetworkPredictionSerialization.h"

Syntax

struct FNetworkPredictionSerialization

Functions

Name Description

Public function Static

int32

 

ReadCompressedFrame

(
    FArchive& Ar,
    int32 RelativeFrame
)

Disabled right now: this is causing issues with JIP.

Public function Static

void

 

SerializeDeltaMS

(
    FArchive& Ar,
    int32& DeltaTimeMS
)

For serializing DeltaMS, expected to be small (< 1000)

Public function Static

int32

 

SerializeFrame

(
    FArchive& Ar,
    int32 Frame,
    int32 RelativeFrame
)

Helper to serialize an int32 frame as 8 bits. Returns the unpacked value (this will be same as input in the save path)

Public function Static

void

 

SerializeTimeMS

(
    FArchive& Ar,
    int32& TimestampMS
)

For serializing timestamps.

Public function Static

void

 

WriteCompressedFrame

(
    FArchive& Ar,
    int32 Frame
)

Disabled right now: this is causing issues with JIP.

Constants

Name

Description

FRAME_ERROR_THRESHOLD

This is the threshold at which we would wrap around and incorrectly assign a frame on the receiving side.

MAX_FRAME_WRITE

Abs max value we encode into the bit writer.

NUM_BITS_FRAME

How many bits we use to NetSerialize Frame numbers.

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