UpdateAllocator
Rewindable allocator instance for this World.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Property
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public ref RewindableAllocator UpdateAllocator { get; }
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.