
Dynmap is doing sync chunkloads from region files for map rendering on the main thread.
sennby opened this issue · 4 comments
Frequently my server is dropping TPS, and almost always when it is serious it is because of dynmap and this same exact thing. Is there anything i can do?
Im on 1.21.1
Can provide a spark to who needs if it is needed.
every day dynmap #1 lagger on my server sparks. including today again.
its doing sync chunk loads from region files, why does this plugin read chunks for map rendering on the main thread
Before 1.21, there was some code that did async chunk loading on Paper. But it hooked deeply into internal APIs in a way that it shouldn't have. For 1.21, Paper refactored their async loading to make it better, and dynmap broke, it falls back to sync chunk loading instead. Same way that it works on Spigot.
I noticed this when I did my PR for 1.21.3 and 1.21.4. It was way beyond my capabilities to re-add it. Someone did leave a comment about what's needed:
#4164 (comment)
Based on that comment, it shouldn't be too difficult to re-add it. I never tried it.
Before 1.21, there was some code that did async chunk loading on Paper. But it hooked deeply into internal APIs in a way that it shouldn't have. For 1.21, Paper refactored their async loading to make it better, and dynmap broke, it falls back to sync chunk loading instead. Same way that it works on Spigot.
I noticed this when I did my PR for 1.21.3 and 1.21.4. It was way beyond my capabilities to re-add it. Someone did leave a comment about what's needed: #4164 (comment) Based on that comment, it shouldn't be too difficult to re-add it. I never tried it.
What can i do as a user not a developer to improve this. Or are you saying that its somethign i should build and do myself and use a custom jar i make, if that is the case I think i will have to be looking at moving off dynmap.
I'm just commenting so other developers know what the issue is and how to fix it. For now you already did everything you need to do - open an issue to bring attention to developers.
I'm just commenting so other developers know what the issue is and how to fix it. For now you already did everything you need to do - open an issue to bring attention to developers.
Yeah sadly looks like there is nothing coming of this anytime soon. I cant keep dealing with a lagging server because of dynmap. I have to leave dynmap and move to another solution.