{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Struct GhostDeltaPredictor | Netcode for Entities | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct GhostDeltaPredictor

    For internal use only. Used by the ghost component serializer to calculate (predict) the new value for a field, given the two previous baseline values.

    This value provides a good estimate for current value of a variable when changes are linear or otherwise predictable. I.e. Small deltas have good compression ratios.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.NetCode
    Assembly: solution.dll
    Syntax
    public struct GhostDeltaPredictor

    Constructors

    Name Description
    GhostDeltaPredictor(NetworkTick, NetworkTick, NetworkTick, NetworkTick)

    Construct the predictor using the last three recent baselines ticks. The ticks are used to calculate the relative weight that is applied to the baseline values.

    Methods

    Name Description
    PredictInt(int, int, int)

    Calculate the predicted value for the given integer, using the previous three baselines.

    PredictLong(long, long, long)

    Calculate the predicted value for the given long, using the previous three baselines.

    In This Article
    Back to top
    Copyright © 2023 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)