docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)