0

I have a spigot server with the TrainCarts plugin installed. The trains need to have some chunks around them loaded so they can move and interact with rails, signs etc... Because of the high amount of trains that I have in the map, almost the whole world has to be fully loaded all the time. The problem is that the world has tons of item frames (maybe 5000 of them) and loading them all makes the server run at around 7tps causing a lot of lag and making trains run slow. I can't upgrade the processor because I have my server with a hosting provider.

Is there any way of making item frames only load when a player is near, and not loading them when only trains are near the item frames? Or maybe there is a better solution to do what I'm thinking about?

  • 1
    They should already only render within 32 blocks or so around the player. Also, this is client lag, it doesn't have much to do with how many chunks are loaded server-side. – Fabian Röling Jul 22 at 19:52
  • I don't think it's client-side because when doing /gc (essentials) it says there are around 10000 entities loaded and I'm sure that has to include item frames. Maybe there is something I don't fully understand about entity loading. – jnts Jul 22 at 20:06
  • How far are you away from the item frames? – Fabian Röling Jul 22 at 20:28
  • Item frames are everywhere in the map, but I only want to load nearby ones. I also had the idea to load chunks in lazy mode and only load minecarts over that chunks, but I don't think that's possible. – jnts Jul 22 at 20:31
  • Only nearby ones are loaded anyway, client side at least. They don't put that much stress on the server. – Fabian Röling Jul 23 at 0:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.