Ping issues when loading in a map

my game has high ping when loading in an area of my map but then after its fully loaded the ping returns to normal

basically I dont want any ping spikes when loading in an area and the ping issues are 100% map related so Im wondering what settings I should do for streamingenabled and for the map itself? How can I make the ping issues less of an issue or completely get rid of it?

Do you have the area already loaded in or does it load in during the gameplay?

1 Like

It loads in during gameplay and while it does it causes ping issues like it reaches 1k ping sometimes its not good,

I want to fix the ping issue alltogether

Loading a map can cause a lot of lag, so you can do something similar to what Build A Boat For Treasure does, and loop through every object in the map and place it into the workspace, and then waiting a bit.

Might take a while to load, but it will decrease ping by a big amount

What you can also try is loading it all when the player joins and putting a loading screen in the game (if the game isnt too big) or indeed making the gameplay pause for it to load.

I added a loading screen and I still have that issue so Im wondering if the loading screen works at all or?

Can you explain a bit more how do I add an loop through every object? And also the buildings are already in workspace

You probably could take advantage of :GetDescendants() on the part of the map that hasn’t loaded yet, and then place the part into the workspace.

I’m not quite sure if this is the best way to do this, but it could probably get the job done.

1 Like

Reduce the faces on models or either make a loading screen alternatively for easy fix.

I added the loading screen and it doesn’t seem to be working

The main issue is when I load areas that are still loading in through streamingenabled which causes large ping spikes

I have no idea what causes this

perhaps store the maps in Replicated?

So I should put all the models and building into replicated storage?