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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unity 5.2 Unet laggy after updating form 5.1x

Discussion in 'UNet' started by sebeisdrache, Sep 9, 2015.

  1. sebeisdrache

    sebeisdrache

    Joined:
    Jan 16, 2015
    Posts:
    34
    Hello

    I just updated my gameproject to Unity 5.2 (from 5.1x) and now I have a extrem lags, but with Unity 5.1 it worked fine.

    The game uses the standard networkmanager + matchmaking service.

    Has anyone else the same problem?

    edit:
    I have tested the game by connecting over lan with the same result.
     
    Last edited: Sep 11, 2015
  2. sebeisdrache

    sebeisdrache

    Joined:
    Jan 16, 2015
    Posts:
    34
    sorry for double posting:

    I do sync the movement like in this tutorial:

    even a simple Text message (Chatbox for the players) took 0.5 - 1 sec (on the same machine with local connection).
     
  3. sebeisdrache

    sebeisdrache

    Joined:
    Jan 16, 2015
    Posts:
    34
    I have tested the ping (RTT) which is ~67 ms

    so there is no reason to have a laggy behavior. there a even Lags when I use the "Network Transform" compenent instead of my own script.
     
    Last edited: Sep 11, 2015
  4. sebeisdrache

    sebeisdrache

    Joined:
    Jan 16, 2015
    Posts:
    34
    I was able to fix It by decreasing the "Max Delay" value in the Network Manager
     
  5. HugoZandel

    HugoZandel

    Joined:
    Mar 11, 2014
    Posts:
    52
    I find that sometimes if you run stuff in the editor the packets seems to get delayed by a couple of seconds. I thought there was a problem in my code but I ran two clients and everything was fine. So I think there's something wrong in the sending process of the editor.