-
Notifications
You must be signed in to change notification settings - Fork 9
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
1.14.1 Paper #26 Server Hang #69
Comments
I should find a bot to unravel small pastebin links.
|
As with the other issue, the latest version of Paper seems to have fixed this |
This is due to chunk loading, if not chunk generation which is why you're probably not having an issue now. |
Having the same on Paper 68, which is 1.14.2. I have to say it seems like plugin authors are actually farther ahead of Mojang, with 1.14. Really surprising lately. |
This occurred during a region scan, and likely was taking a while since it was generating chunks. This could be refactored to be split up over a few ticks, or "asynchronously" with Paper's async chunk load API. Both will take a fair bit of time to do, though I guess PaperLib can help the latter refactor with compatibility a lot easier. |
So there's no use (right now) to use Paper's async chunk loading API as it will not load chunks asynchronously for the moment. I'll look into breaking up the task to take chunks in intervals - which will likely be a significant refactor unfortunately. The actual scan is done asynchronously, but it needs snapshots of the chunks in order to perform the scan. The current design is to acquire all chunk snapshots within a region, which first requires each chunk to be loaded - and this has to be done synchronously. This is currently all done in a single task (and as such, within a single tick), hence why it'll take work to break this up into intervals. |
If anyone's interested in PRing, here's the relevant task: https://github.com/TechFortress/PopulationDensity/blob/5b5456d34a48d50ba18012a1d7b68026b8a9982e/src/me/ryanhamshire/PopulationDensity/PopulationDensity.java#L1234-L1280 |
@ichbinashh What was the output of |
any luck on this issue? I had to remove the plugin for a bit because it wouldnt play nice with 1.14.3. Would love to bring it back |
Pregenerating the world would help a lot, else the scanner will generate chunks, which takes much longer to perform than loading. |
Any progress? Population Density drags down my TPS from 20 to 16. |
Also, you're looking at average TPS from a server start, which isn't a good metric to be taking statistics for performance on. |
I did pregen the world using Worldborder. How long should, in an ideal scenario PopulationDensity affect TPS before it goes back to normal? |
Only the first phase of the scanner, where it obtains the ChunkSnapshots. The rest of the scanning is done asynchronously. Iirc there's an option to turn off the scan at startup? But PD only affects maybe half a minute if it doesn't need to close a region. |
Alright, I'm gonna turn on Population Density next time when we have players playing, and leave it running for 2 hours to judge average TPS. |
Use |
https://pastebin.com/u9awiRez
The text was updated successfully, but these errors were encountered: