Large Lag Spike on Player Join

For whatever reason when a player joins the development build of my game, it causes a very noticeable spike in network latency. This is made apparent when observing moving player characters and they suddenly freeze upon someone joining. Everyone in the server sees this happen, so it isn’t client-sided. I’ve tried many things to find the cause and resolve the issue myself, but I have no clue what else to do.
I combed through a bunch of scripts that connect the PlayerAdded event, yet none of them seemingly do anything that would cause this, and if it did, you’d most likely expect it to only affect the player that is joining, not every player in the server. I’ve got like 5 server microprofiler logs with a large spike in replication activity, but I can’t narrow down the source. I tried moving map geometry from maps I thought were problematic to a new place, and the issue no longer happened in that place. I tried turning on Streaming, but it didn’t fix the issue.

I originally believed that a specific map in my game was causing it because of how large it is, but the issue even occurred on a map that is just a baseplate.

Clear spike in data sent upon a player joining.

Clear spike on the server profiler.

Video of a player walking around, you can see them freeze shortly when a player joins. (Join chat messages are delayed)


The freeze observed in this video isn’t too bad, but there have been much worse occurrences that heavily disrupt gameplay.

As this is incredibly disruptive to players in a fast-paced game, I think it’s very important for me to fix this before my planned release date, but I’m all out of ideas.

I’ve attached more sensitive data to the private content section.

A private message is associated with this bug report

Hello, we will take a look - I would examine the areas around network traffic that happen. Perhaps there is data that doesn’t need to be replicated from the server side that would help you.

1 Like