Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug NetworkTime.InterpolationTick is always invalid on the server

Discussion in 'NetCode for ECS' started by ts_headfirst, Dec 6, 2023.

  1. ts_headfirst

    ts_headfirst

    Joined:
    Aug 1, 2023
    Posts:
    69
    Already reported as IN-62161, but also posting here for clarity.

    NetworkTime.InterpolationTick is always invalid on the server, despite the documentation stating:

    Code (CSharp):
    1. /// <summary>
    2. /// The current interpolated tick (integral part). Always less then the ServerTick on the Client (and equals to ServerTick on the server).
    3. /// </summary>
    4. public NetworkTick InterpolationTick;
    i.e. the expectation is that InterpolationTick == ServerTick on the server, but InterpolationTick is instead always invalid on the server.

    As a small side-note there are a couple of typos in the docs:
    "Always less then the..." should be "Always less than the..."
    "(and equals to ServerTick on the server)" should be "(and equal to ServerTick on the server)"
     
  2. NikiWalker

    NikiWalker

    Unity Technologies

    Joined:
    May 18, 2021
    Posts:
    286
    Hey mate! Indeed you're right, we'll fix this (and the comment errors). Thanks for the report!
     
    ts_headfirst likes this.
  3. michal_chrobot

    michal_chrobot

    Unity Technologies

    Joined:
    Mar 14, 2023
    Posts:
    2
    Hi, I just wanted to note that the PR with proper changes landed in master, and we're currently working out which release to put it into. Thanks again for the report!
     
    ts_headfirst likes this.