Search Unity

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.