文档

Unity Engine

Download Unity

Unity Engine

RestoreGroupAllocator(DoubleRewindableAllocators*)

Pop group allocator out of the stack.
阅读时间1 分钟最后更新于 20 天前

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.