![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <BufferedData.h>
Public Member Functions | |
| TBufferedData () | |
| void | Flip () |
| const DataType & | GetGameDataForRead () const |
| const DataType & | GetPhysicsDataForRead () const |
| int32 | GetGameDataSyncCount () const |
| int32 | GetPhysicsDataSyncCount () const |
| DataType & | GetGameDataForWrite () |
| DataType & | GetPhysicsDataForWrite () |
| DataType & | Get (int32 InIndex) |
Container type for double buffered physics data. Wrap whatever results object in this to have well definied semantics for accessing each side of a buffer and flipping it
|
inline |
|
inline |
Flips the double buffer, no locks here - if synchronizing multiple threads make sure there's a lock somewhere
|
inline |
Direct access to buffered data, useful to initialise members before beginning simulation. Never use once the data is being managed over multiple threads
|
inline |
Get a readable reference for the game thread side of the double buffer
|
inline |
Only for the game side to call, gets a writable reference to the game side data. Mainly useful for exchanging ptrs in the data type. For copying just call GetGameDataForRead
|
inline |
Get the counter for the last written state on the game side
|
inline |
Get a readable reference for the physics side of the double buffer
|
inline |
Only for the physics side to call, gets a writable reference to the physics side and increments the current sync counter to uniquely identify this write
|
inline |
Get the counter for the last written state on the physics side