Method RestoreGroupAllocator
RestoreGroupAllocator(DoubleRewindableAllocators*)
Pop group allocator out of the stack.
Declaration
public void RestoreGroupAllocator(DoubleRewindableAllocators* oldGroupAllocators)
Parameters
Type | Name | Description |
---|---|---|
DoubleRewindableAllocators* | 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.