Pre-Loading Maps on Minigames.

Discussion in 'Server Suggestions' started by Ankh, Apr 18, 2020.

  1. Ankh

    Joined:
    Jul 23, 2019
    Messages:
    874
    Likes Received:
    810
    Ankh
    This mostly applies to minigames like Capture the Flag and Survival Games. The lag at the start of the game on SG particularly is so bad that it occasionally gets to the point where the server is frozen until after the 10 second countdown has completed.

    As you probably already know, when map voting ends and a map is chosen, there is still 10 seconds before it actually sends players to the map. I believe that these 10 seconds should be utilized to pre-load the spawn chunks of the selected map, likely removing a large chunk of the lag that is caused when the game begins. Personally, I'd prefer having a few seconds of slight lag while in the waiting lobby over a massive lag spike at the most crucial stage of the game.

    If you want an example of what I'm taking about, here is what happens:

    If you're reading this you are a true legend
     
  2. creeper7777777

    Joined:
    Jul 23, 2019
    Messages:
    195
    Likes Received:
    248
    creeper7777777
    I notice it the most on capture the flag. Usually, everyone spawns and you can move, although you don't see anyone else moving for another 5 seconds. After the few seconds finish, suddenly you lag a bit and then you can see everyone moving. Personally, I don't lag back to the starting place unless I have bad ping. Perhaps both circumstances (the one I described and the one in your video) are caused by client-side lag, and not the server. SG has a countdown at the beginning, so at least you don't experience any loading lag during the actual gameplay.

    Overall, though, this sounds like a good idea, if it isn't already implemented. If the lag is in fact caused by the server, it should be fixed.
     
  3. Ankh

    Joined:
    Jul 23, 2019
    Messages:
    874
    Likes Received:
    810
    Ankh
    It's probably not 100% caused by this alone, but I feel like this makes up a large portion of it. The map is not loaded at all, then suddenly 24 players get thrown into it and the server has to load every single chunk within ~100-200 blocks, all at once. It would be a lot faster if the map was already loaded into the RAM before the game started, if they're not doing this already.

    Also I've occasionally noticed that sometimes it will completely freeze you in place on SG for 15-20 seconds, which is especially bad on SG since you're just standing there at mid not moving.
     

Minecraft Central Store | Powered by Xenforo | Minecraft Central Rules
The MCC server is in no way affiliated with Mojang, AB. Nor should it be considered a company endorsed by Mojang, AB.