Property UpdateAllocator
UpdateAllocator
Rewindable allocator instance for this World.
Declaration
public ref RewindableAllocator UpdateAllocator { get; }
Property Value
Type | Description |
---|---|
RewindableAllocator |
Remarks
Useful for fast, thread-safe temporary memory allocations which do not need to be explicitly disposed. All allocations from this allocator are automatically disposed en masse after two full World updates. Behind the world update allocator are double rewindable allocators, and the two allocators are switched in each world update. Therefore user should not cache the world update allocator.