Documentation

Unity Engine


Unity Engine


RestoreGroupAllocator(DoubleRewindableAllocators*)

Pop group allocator out of the stack.
Read time 1 minuteLast updated 10 hours ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public void RestoreGroupAllocator(DoubleRewindableAllocators* oldGroupAllocators)

Parameters

oldGroupAllocators

The group allocator to pop from the stack.

Remarks

System group can make use of group allocator to rewind memory at a different rate from the world update. User can achieve this in rate manager's ShouldGroupUpdate(), when pushing time into world, user also set group allocator to replace world update allocator. When popping time out of the world, user rewinds the allocator if not world owned update allocator and then restore the old allocator back.