#Items Creating Lag

1 messages · Page 1 of 1 (latest)

regal junco
#

Hello, I'm creating a gen server on islands, but my issue is when the player is at spawn or anywhere other than their island the items the gens make stack up and don't move. Which you could probably guess creates a very laggy experience when the player teleports back to their island. So I'm trying to get information on the best way to go about fixing this issue. Preferably I would want the items to move and flow into hoppers if there is any, but if that's not possible then lmk. Thank You!

tame magnet
#

are the islands seperate worlds?

regal junco
#

no

#

but the island and spawn is in seperate worlds

tame magnet
#

Would it be viable to just check if the gen's owner is close before spawning more items?

#

Because I'm pretty sure you can't really make the items move...

#

Unless you like force load the chunks but I don't know how bad that could be...

regal junco
#

I just wasnt sure on how i would make the items move i didnt know if you could load the chunks somehow and that would fix it

#

would loading them work?

tame magnet
#

yeah

regal junco
#

how do i load them?

tame magnet
#
#

but as it says it means you will have to explictily unload the chuncks when the player logs off

#

and you'd probably wanna do it async

regal junco
#

what does async mean?

tame magnet
regal junco
#

what is the main thread?

tame magnet
#

Basically using async prevents lag spikes

regal junco
#

ok i understand

#

thank you for the help

#

im gonna try this

tame magnet
#

Okay :) you're welcome to DM me if you have more questions!

light condor