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. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

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

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

  1. chrismarch


    Jul 24, 2013
    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


    Unity Technologies

    Jul 17, 2012
    >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?