FChaosMarshallingManager

Manages data that gets marshaled from GT to PT using a timestamp

Windows
MacOS
Linux

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/ChaosMarshallingManager.h

Include

#include "Chaos/ChaosMarshallingManager.h"

Syntax

class FChaosMarshallingManager

Remarks

Manages data that gets marshaled from GT to PT using a timestamp

Constructors

Name Description

Public function

FChaosMarshallingManager()

Destructors

Name Description

Public function

~FChaosMarshallingManager()

Functions

Name Description

Public function

void

 

AddSimCallbackInputData_External

(
    ISimCallbackObject* SimCallbac...,
    FSimCallbackInput* InputData
)

Public function

void

 

FinalizePullData_Internal

(
    int32 LatestExternalTimestampConsum...,
    float SimStartTime,
    float DeltaTime
)

Hands pull data off to external thread

Public function

void

 

FreeData_Internal

(
    FPushPhysicsData* PushData
)

Frees the push data back into the pool.

Public function

void

 

FreeDataToHistory_Internal

(
    FPushPhysicsData* PushData
)

May record data to history, or may free immediately depending on rewind needs.

Public function

void

 

FreePullData_External

(
    FPullPhysicsData* PullData
)

Frees the pull data back into the pool.

Public function

FPullPhysics...

 

GetCurrentPullData_Internal()

Returns the current pull data being written to.

Public function Const

FReal

 

GetExternalTime_External()

Returns the amount of external time pushed so far.

Public function Const

int32

 

GetExternalTimestamp_External()

Returns the timestamp associated with inputs enqueued.

Public function

FPushPhysics...

 

GetProducerData_External()

Grabs the producer data to write into. Should only be called by external thread

Public function

FPullPhysics...

 

PopPullData_External()

Pops and returns the earliest pull data available.

Public function

void

 

RegisterSimCallbackObject_External

(
    ISimCallbackObject* SimCallbac...
)

Public function

void

 

RegisterSimCommand_External

(
    FSimCallbackCommandObject* Sim...
)

Public function

void

 

SetHistoryLength_Internal

(
    int32 InHistoryLength
)

Public function

void

 

SetTickDelay_External

(
    int32 InDelay
)

Used to delay marshalled data. This is mainly used for testing at the moment

Public function

TArray< FPus...

 

StealHistory_Internal

(
    int32 NumFrames
)

Returns the history buffer of the latest NumFrames.

Public function

void

 

Step_External

(
    FReal ExternalDT,
    const int32 NumSteps
)

Step forward using the external delta time. Should only be called by external thread

Public function

FPushPhysics...

 

StepInternalTime_External()

Step the internal time forward if possible

Public function

void

 

UnregisterSimCallbackObject_External

(
    ISimCallbackObject* SimCallbac...
)

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