Recently players in my game have started to experience significant ping spikes when players join my game. It isn’t uncommon to see ping time tripple when single players join. I’ve spent a lot of time debugging this and I think the cause might be related to a recent update regarding loading.
I work on Apocalypse Rising 2 and we store a huge amount of items, chunked parts of our map, scripts, images, sounds, so on. We have to keep a majority of it in ReplicatedStorage and ReplicatedFirst since the client needs almost all of those instances at one point or another. Quick benchmarks in an isolated test put client memory at ~1GB when the instances are in ReplicatedStorage and ReplicatedFirst.
My isolated test for this involved no running scripts, just the instances in their desired storage services:
Testing steps were as follows:
- publish the game with no running scripts
- play the game and wait for ping to stabilize
- have another user join the game
- observe ping levels
We tested under the follow conditions:
- Storage as is (see picture above)
- Storage with everything in ReplicatedFirst
- Storage with everything in ReplicatedStorage
- Storage with everything in Workspace
- Storage with everything in ServerStorage
Tests 1, 2, 3 all gave us the same results. Ping is stable at the 60ms range and when the second player joints the game ping spikes into the 300-500ms range then drops back down to the 60ms range.
Test 4 crashed clients when they tried to join the testing place.
Test 5 had no increases in ping (presumably because there was nothing to replicate).
All tests we’re reproducible 100% of the time, all test cases tested at least 3 times. I can privately supply a .rbxl file to work with on request, the contents of the file are not for public use.
EDIT: public repro Ping skyrockets on player join
This breaks my game. It is totally unacceptable for me to expect 500ms of ping for extended periods of time just because a player joins. In actual game tests on our development build we’ve had serious performance issues on server sided tasks and busy player traffic servers become totally unplayable.
I don’t have anything other than timing to believe that this problem is linked to this update. We did not experience ping spikes like this before the update went live and our development and productions versions of our game suffer from really bad ping spikes when players join.