docs.unity.cn
    Show / Hide Table of Contents

    Class RateUtils.FixedRateSimpleManager

    Implements a rate manager that updates the group exactly once per presentation frame, but uses a constant timestep instead of the actual elapsed time since the previous frame.

    Inheritance
    Object
    RateUtils.FixedRateSimpleManager
    Namespace: Unity.Entities
    Syntax
    public class FixedRateSimpleManager : IRateManager
    Remarks

    With this rate manager, the simulation will always tick at a constant timestep per rendered frame, even if the actual per-frame time is variable. This provides more consistent and more deterministic performance, and avoids issues stemming from the occasional extremely long or short frame. However, animations may start to appear jerky if the presentation time is consistently different from the fixed timestep. This mode is best suited for applications that reliably run very close to the specified fixed timestep, and want the extra consistency of a constant timestep instead of the usual slight variations.

    Constructors

    Name Description
    FixedRateSimpleManager(Single)

    Construct a new instance

    Properties

    Name Description
    Timestep

    The timestep since the previous group update (in seconds).

    Methods

    Name Description
    ShouldGroupUpdate(ComponentSystemGroup)

    Determines whether a system group should proceed with its update.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023