{!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 NetworkTimeSystemData | Netcode for Entities | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct NetworkTimeSystemData

    Stores the internal state of the NetworkTimeSystem. The component should be used for pure inspection or backup the data. Please don't change the the state values direclty.

    Implements
    IComponentData
    IQueryTypeParameter
    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 NetworkTimeSystemData : IComponentData, IQueryTypeParameter

    Fields

    Name Description
    avgDeltaSimTicks

    The average of the delta ticks in between snapshot. Is the current perceived estimate of the SimulationTickRate/SnapshotTickRate. Ex: If the server send at 30hz and the sim is 60hz the avg ratio should be 2

    avgPacketInterArrival

    The packet arrival rate exponential average

    currentInterpolationFrames

    The current interpolation delay ticks, used to offset the last estimated server tick in the past.

    devDeltaSimTicks

    The "std" deviation / jitter (actually an approximation of it) of the perceived netTickRate.

    interpolateTargetTick

    The calculated intepolated tick, used to display interpolated ghosts.

    lastTimeStamp

    The local timestamp when received the last packet. Used to calculated the perceived packet arrival rate.

    latestSnapshot

    The latest snapshot tick received from the server. Used to calculate the delta ticks in between snapshot.

    latestSnapshotAge

    the fixed point exponential average of the difference in between the estimated tick and the actual snapshot tick received from the server. Used to adjust the latestSnapshotEstimate.

    latestSnapshotEstimate

    An internal estimate of the tick we are suppose to receive from server. PredictedTick and InterpolatedTick are extrapolotated from that.

    predictTargetTick

    The estimated tick at which the server will received the client commands.

    subInterpolateTargetTick

    The residual tick portion of the interpolateTargetTick.

    subPredictTargetTick

    The residual tick portion of the predictTargetTick.

    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)