FNetworkPredictionDriverBase::ProduceInput

ProduceInput

Windows
MacOS
Linux

References

Module

NetworkPrediction

Header

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

Include

#include "NetworkPredictionDriver.h"

Syntax

static void ProduceInput
(
    DriverType * Driver,
    int32 DeltaTimeMS,
    InputType * InputCmd
)

Remarks

ProduceInput

Called on locally controlled simulations prior to ticking a new frame. This is to allow input to be as fresh as possible. submitting input from an Actor tick would be too late in the frame.

currently input is sampled/broadcast in PC tick and this is still causing a frame of latency in the samples. This will be fixed in the future.

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