Manages data that gets marshaled from GT to PT using a timestamp 更多...
#include <ChaosMarshallingManager.h>
Public 成员函数 | |
| void | FreeCallbackData_Internal (FSimCallbackHandlePT *Callback) |
| Frees the callback push data back into the pool. 更多... | |
| void | FreeData_Internal (FPushPhysicsData *PushData) |
| Frees the push data back into the pool. 更多... | |
| FReal | GetExternalTime_External () const |
| Returns the amount of external time pushed so far. 更多... | |
| int32 | GetExternalTimestamp_External () const |
| Returns the timestamp associated with inputs enqueued. | |
| int32 | GetExternalTimestampConsumed_External () const |
| Returns the timestamp associated with inputs consumed. 更多... | |
| FPushPhysicsData * | GetProducerData_External () |
| Grabs the producer data to write into. 更多... | |
| void | SetTickDelay_External (int32 InDelay) |
| Used to delay marshalled data. 更多... | |
| void | Step_External (FReal ExternalDT) |
| Step forward using the external delta time. 更多... | |
| TArray< FPushPhysicsData * > | StepInternalTime_External (FReal InternalDt) |
| Step the internal time forward and get any push data associated with the time. 更多... | |
Manages data that gets marshaled from GT to PT using a timestamp
| void Chaos::FChaosMarshallingManager::FreeCallbackData_Internal | ( | FSimCallbackHandlePT * | Callback | ) |
Frees the callback push data back into the pool.
Internal thread should call this when callback will no longer be used with this specific data
| void Chaos::FChaosMarshallingManager::FreeData_Internal | ( | FPushPhysicsData * | PushData | ) |
Frees the push data back into the pool.
Internal thread should call this when finished processing data
|
inline |
Returns the amount of external time pushed so far.
Any external commands or events should be associated with this time
|
inline |
Returns the timestamp associated with inputs consumed.
Note the simulation may be pending, but any data associated with timestamp <= returned value has been passed
|
inline |
Grabs the producer data to write into.
Should only be called by external thread
|
inline |
Used to delay marshalled data.
This is mainly used for testing at the moment
| void Chaos::FChaosMarshallingManager::Step_External | ( | FReal | ExternalDT | ) |
Step forward using the external delta time.
Should only be called by external thread
| TArray< FPushPhysicsData * > Chaos::FChaosMarshallingManager::StepInternalTime_External | ( | FReal | InternalDt | ) |
Step the internal time forward and get any push data associated with the time.
Should only be called by external thread