Causes of Ping Spikes

Hello,

I’m working on a tennis game at the moment, and I’ve encountered a lot of people telling me about how the balls randomly freeze. Their ping spikes up almost 100 points, but it isn’t for the entire server. This also doesn’t happen in other games they play.

I’m trying to find the cause of this, so I opened performance stats and took a look at the receive/send rates, but couldn’t find anything out of the ordinary when the ball froze on my own screen.

Next, I looked at the server’s LuaHeap, and noticed that it slowly rises (all the way up to 30 points, in some cases, as servers run for a long time). In the picture I attach, you can see how the LuaHeap’s graph actually jumps in weird ways. I’m not really sure why this happens.


Notice how in the graph above, it looks like a step function. (Just something I noticed).

This is extremely weird behavior, and I believe this might be causing the lag spikes.

Does anyone have any ideas as to why this may be happening?

1 Like

How much data is sent / received? Games that have extremely high network usage cause these kinds of lag spikes. A safe amount would be less than 100kbps

Ping spikes happen in a game that I’m working on when players teleport. I’m pretty sure the ping rises when the game is attempting to do a large event in the game, like teleport everyone.

Sent and received for a server size of around 25 people is 6 Kbps sent and 50 Kbps received. Seems pretty normal.

The only thing I can think of is an OrderedDataStore query every 5 minutes. I also do an autosave every 5 minutes, but ping spikes happen outside of those times.

Bump
[NeedThirtyCharactersForSomeReason]

If it only happens to some players, maybe it is just their wifi. Because some players have better devices than others.