Question by
GigaShadow · Apr 28, 2017 at 04:38 AM ·
networkingmultiplayerserver
Is there any benefit to calling NetworkTransport.Receive multiple times per tick?
I am currently working on a multiplayer game that aims to support a large number of concurrent players. I noticed that each call to NetworkTransport.Receive only processes a single client message per call, meaning that the state updates from clients can become delayed as the server will wait until the next tick to process another message. I wondered if there was any reason not to continue calling NetworkTransport.Receive in a while loop until it returns NetworkEventType.Nothing.
Is this a reasonable thing to do to maximize server utilization? Is there a better way to go about this?
Thanks!
Comment