FPersistentPhysicsTask

Windows
MacOS
Linux

Inheritance Hierarchy

FNonAbandonableTask

FPersistentPhysicsTask

References

Module

ChaosSolvers

Header

/Engine/Source/Runtime/Experimental/ChaosSolvers/Public/Framework/PersistentTask.h

Include

#include "Framework/PersistentTask.h"

Syntax

class FPersistentPhysicsTask : public FNonAbandonableTask

Variables

Name Description

Public variable

FRWLock

 

CacheLock

Lock for handling caching for proxies.

Public variable

FRWLock

 

StatsLock

Read/Write lock for thread stats, as these are flipped seperately to the rest of the physics data

Constructors

Name Description

Public function

FPersistentPhysicsTask

(
    float InTargetDt,
    bool bInAvoidSpiral,
    IDispatcher* InDispatcher
)

Destructors

Name Description

Public function Virtual

~FPersistentPhysicsTask()

Functions

Name Description

Public function

void

 

AddSolver

(
    FPhysicsSolver* InSolver
)

Adds a solver to the internal list of solvers to run on the async task.

Public function

void

 

DoWork()

Entry point for the physics "thread".

Public function

FPersistentP...

 

GetNextThreadStatistics_GameThread()

Get a copy of the thread stats for the physics task.

Public function

FEvent *

 

GetShutdownEvent()

Get the shutdown event, which this task will trigger when the main running loop in DoWork is broken

Public function

void

 

RemoveSolver

(
    FPhysicsSolver* InSolver
)

Removes a solver from the internal list of solvers to run on the async task

Public function

void

 

RequestShutdown()

Request a shutdown of the current task.

Public function

void

 

SetTargetDt

(
    float InNewDt
)

Below functions alter the running task state and should be called using commands once the task is actually running Sets the target per-tick Dt.

Public function

void

 

SetTickMode

(
    EChaosSolverTickMode InTickMode
)

Sets the tickmode for the thread, this controls how timesteps are calculated

Public function

void

 

SyncProxiesFromCache

(
    bool bFullSync
)

Synchronize proxies to their most recent gamethread readable results

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