Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Input delay to reduce resimulations count

Discussion in 'NetCode for ECS' started by AlexandrKvitka, Aug 11, 2023.

  1. AlexandrKvitka

    AlexandrKvitka

    Joined:
    Jun 11, 2022
    Posts:
    6
    Hello.
    I have a question about implementing the input delay technique in net code for ECS.
    The main idea of this technique is to send input immediately but apply it with delay.
    I want to use it to reduce the resimulation count. Without input delay, I will have the resimulations count equal to RTT / FrameRate. But with input delay, it will be (RTT - InputDelay) / FrameRate.
    I drew a chart to show this idea.
    Can I implement it?
    Or do I need to do a custom time synchronization?
    111.png
     
  2. NikiWalker

    NikiWalker

    Unity Technologies

    Joined:
    May 18, 2021
    Posts:
    224
    Hey Alexandr,

    Apologies, this feature - "Forced Input Latency" (used also in GGPO-style netcode) - is in our backlist, but is not currently available. You'd need to make non-trivial package modifications to expose and hook it up.
     
  3. AlexandrKvitka

    AlexandrKvitka

    Joined:
    Jun 11, 2022
    Posts:
    6
    Yes, this feature is used in GGPO.
    Thank you.
    How long to wait for this feature? Are there any predictions?
     
  4. NikiWalker

    NikiWalker

    Unity Technologies

    Joined:
    May 18, 2021
    Posts:
    224
    Unfortunately no, but I've bumped the backlog priority slightly. We'll reply here once it's implemented.