Search Unity

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

Bug NetworkManager "Use Network Simulator" leads to immediate client disconnect

Discussion in 'Multiplayer Tools' started by chrismarch, Jul 13, 2015.

  1. chrismarch

    chrismarch

    Joined:
    Jul 24, 2013
    Posts:
    470
    If I check "Use Network Simulator" and set the latency to 400ms, with 5.1.1f1 (Windows 64bit) my client immediately disconnects from my server. However, if I use clumsy.exe, I can simulate 400+ms just fine, and I can confirm it with NetworkTransport.GetCurrentRtt, without any disconnections from the client. Am I using the Unity Multiplayer network simulator incorrectly? I built both my client and server with the 400ms latency setting.
     
    dnnkeeper likes this.
  2. aabramychev

    aabramychev

    Unity Technologies

    Joined:
    Jul 17, 2012
    Posts:
    574
    >Am I using the Unity Multiplayer network simulator incorrectly?
    Hi Chris
    Hm, probably. But probably it is a bug. Network simulator is trying to simulate network based on min and average rtt. max maxRTT = minRTT - ( avgRTT - minRTT )*ln(0.05) or roughly minRTT + 3*(avgRTT - minRTT) in your case it will be 1.2 sec?

    But the bug is possible too :) Can I take a look on your project?