-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
World.setKeepSpawnInMemory ignored? #774
Comments
This patch looks buggy. The method to load keep-spawn-chunks-loaded is created, but it's not called anywhere, nor I can see this debug printed. |
the method is called with the reflection in that class, beyond that, the field is read on creating the world and set in the class, it likely boils down to the fact that in 3 years the amount of data stored in a world has increased along with additional processes done during loading a world increasing the time required to load the world |
No, it's not called, I would see a debug print of Keep spawn chunk loaded... |
Also I can see the chunks loaded in the heap...when I haven't even joined the server since start. |
That setting doesn't stop chunks from being loaded, it only allows the chunks to unload. The server also doesn't log those settings unless verbose is turned on |
Right, I turned on the verbose and can see the stuff loading. |
Ok, I changed the class that creates the world from .zip template to copy the level.dat file too (it only copied data and region) Now it's down from 1000+ to 378ms. |
level.dat contains stuff like the UUID,sharing it between worlds will cause issues with loading them. Also, the rest of that time goes to actually loading the world, worlds have many settings attached to them that need to be loaded at startup... You can check the process by looking at the nms world classes, I'm currently unable to use my main computer right now. |
ok I got some initial profiling data...might be an easy fix. I'll let you know once I analyze it. WorldServer. - 1000ms -> LootTableRegistry 1500ms (some terrible like ~ 10x profling overhead, but still) |
As electronicboy mentioned it loads all the new stuff the world now saves: loot tables, advancements, functions etc |
Yes, and I am quite dedicated to fixing(removing as I don't need this mostly) that to get 1.8 start performance and finally stop using 1.8 Paper :( |
Disabling advancements in config makes startup better already, I'll look into the rest of it. |
Closing, there is nothing wrong with the option specified. You have already created a separate issue for a problem area you have identified. As (if) you identify others, you should create separate issues for those specific areas. We will handle any necessary discussion in those tickets as they are created. |
When loading a world with setKeepSpawnInMemory(false)
(either set a WorldCreator level, or at WorldInitEvent level, I do both)
it should load instantly.
Instead, it takes over a second to load on 1.12.
I am migrating from 1.8 and see this buggy behaviour.
Plugin list:
A list of your plugins
No 3rd party plugins.
Actions to reproduce (if known):
It should be near instant, but takes more than a second on 1.12.
Paper build number:
[13:39:06 INFO]: This server is running Paper version git-Paper-1143 (MC: 1.12) (Implementing API version 1.12-R0.1-SNAPSHOT)
The text was updated successfully, but these errors were encountered: