Search Unity

Question NetworkTick.TickIndexForValidTick for server increments 4 each prediction update?

Discussion in 'NetCode for ECS' started by Jawsarn, Jan 8, 2023.

  1. Jawsarn

    Jawsarn

    Joined:
    Jan 12, 2017
    Posts:
    245
    As title, observed that the TickIndexForValidTick of SystemAPI.GetSingleton<NetworkTime>().ServerTick is incremented with 1-X for each time it runs in PredictedSimulationSystemGroup for server systems. And I'm talking about the TickIndexForValidTick and not private m_Value. Client side it seems to be incremented by 1 to run for all the prediction ticks.

    Am I missing something or is this an NetCode bug?
     
    Last edited: Jan 8, 2023
  2. Jawsarn

    Jawsarn

    Joined:
    Jan 12, 2017
    Posts:
    245
  3. Jawsarn

    Jawsarn

    Joined:
    Jan 12, 2017
    Posts:
    245
    Figured out if I just read the documentation a bit more one can use ClientServerTickRate singleton to modify this^^