FChaosSolversModule::GetDispatcher

Get the dispatcher interface currently being used.

Windows
MacOS
Linux

References

Module

ChaosSolvers

Header

/Engine/Source/Runtime/Experimental/ChaosSolvers/Public/ChaosSolversModule.h

Include

#include "ChaosSolversModule.h"

Source

/Engine/Source/Runtime/Experimental/ChaosSolvers/Private/ChaosSolversModule.cpp

Syntax

Chaos::IDispatcher * GetDispatcher() const

Remarks

Get the dispatcher interface currently being used. when running a multi threaded configuration this will safely marshal commands to the physics thread. in a single threaded configuration the commands will be called immediately

Note: This should be queried for every scope that dispatches commands. the game thread has mechanisms to change the dispatcher implementation (CVar for threadmode) which means the ptr could be stale #BGallagher Make this pimpl? Swap out implementation and allow cached dispatcher?

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