Search Unity

[UNET] Optimal packetSize / fragmentSize ?

Discussion in 'UNet' started by Driiades, Jul 19, 2016.

  1. Driiades

    Driiades

    Joined:
    Oct 27, 2015
    Posts:
    151
    Hello.

    I'm not a super engineer in network and i want to set the networkServer by my own to better control it (and also to learn about it :D ).

    So i wanted to set the config NetworkServer and i found this :

    ConnectionConfig config = new ConnectionConfig();
    config.PacketSize = packetSize;
    config.FragmentSize = fragmentSize;

    My question is simple : What is the optimal Packet/Fragment Size for reducing lag ?

    And the bonus question is : Why we have to configure both Client/Server when they need to have the same configuration ? (no ? i get errors if i don't do the same config :( )
     
  2. Driiades

    Driiades

    Joined:
    Oct 27, 2015
    Posts:
    151
    So ?? no idea or just nothing to do of this ? x)