Method SetGroupAllocator
SetGroupAllocator(DoubleRewindableAllocators*)
Push group allocator into a stack.
Declaration
public void SetGroupAllocator(DoubleRewindableAllocators* newGroupAllocators)
Parameters
Type | Name | Description |
---|---|---|
DoubleRewindableAllocators* | newGroupAllocators | The group allocator to push into a stack. |
Remarks
System groups use the group allocator to rewind memory at a different rate from the world update. To do this, use the rate manager's ShouldGroupUpdate(), when pushing time into world. You can also set the group allocator to replace the world's update allocator. When popping time out of the world, you can rewind the allocator, and if not world owned update the allocator, and then restore the old allocator back.