Hey everyone!
I'm having an issue where I'm exceeding the max unreliable message size on KCP. The exact error is:
Failed to send unreliable message of size 1205 because it's larger than Unreliable MaxMessageSize=1199
This is occurring because I have a lot of enemies with quite a few NetworkTransformChildren. I have in the past synced many enemies without hitting this issue - so I have a few questions.
- I presume I should not be looking at increasing this max size and should be taking this as a code/implementation smell - correct?
- Am I exceeding the message size of a given enemy - or are there too many enemies? IE. Are network transform messages handled on a per identity basis, or is it for the given network frame?
- Another approach that I can take is to remove all network transform children, and instead only sync the root and animation state - HOWEVER, enemies ragdoll on death and players can interact with the ragdolls. Does anyone have any recommendations on how to implement synced ragdolls over the network? Or should I just ditch having ragdolls for the sake of network performance?
- If everything on unreliable gets mashed into a single packet, in theory this means that I can only have 21 network transforms. (Syncing position
24bytes, and Rotation56bytes) totaling1176bytes. This seems incredibly low and I know that I've synced more than this in the past. Did something change - or am I misunderstanding something here?