Recent Discussions

Dynamically creating new worlds

Open in Discord
Unanswered
Segugio dell'Appennino posted this in #questions
49 messages
0 views
Segugio dell'AppenninoOP
Im making a plugin for a server im workin on, where new worlds have to be created constantly. Basically a user can request a world to be created, and in that world a minigame will be played. Similar to how mcmahut
What sort of Minigame?
Segugio dell'AppenninoOP
speedrunning mainly
Speedrunning random seed full clears? Or something else?
Segugio dell'AppenninoOP
yeah just rsg
Why do you think you need async world generation?
Segugio dell'AppenninoOP
my current setup freezes the server during world gen
quite the issue i cant lie
Then you're doing something horrendously wrong, because world generation is already off the main thread.
Segugio dell'AppenninoOP
what
the
i looked online and there were so many threads asking for async world gen
so i assumed this was normal
async world gen means each individual chunk is being generated asynchronously
which is extremely hard to do
considering structures are not confined to one chunk
but WORLD generation is already handled outside of the main tick loop
Chances are, whatever your plugin is doing to trigger world gen, you're just doing it on the main thread.
Segugio dell'AppenninoOP
oh i see, this is good info
(this is why I said it was an XY Problem, lmao)
Segugio dell'AppenninoOP
so its the fact that im generating chunks that freezes the server?
im just using Bukkit#createWorld to create the world
How long is createWorld blocking you?
Segugio dell'AppenninoOP
like 4 seconds on a 14600k
can you post the code where you're calling that?
Loading...