Module |
|
Header |
/Engine/Source/Runtime/Experimental/ChaosSolvers/Public/ChaosSolversModule.h |
Include |
#include "ChaosSolversModule.h" |
Source |
/Engine/Source/Runtime/Experimental/ChaosSolvers/Private/ChaosSolversModule.cpp |
Chaos::IDispatcher * GetDispatcher() const
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?