Configurable map update interval#940
Conversation
|
Moved to per world config, everything has been tested. This PR is now ready to merge |
|
This patch makes no sense and should not be included. First, you can see in this patch, if the map contains dirty data, then it will always be immediately rendered with no delay. Configuring the update interval will have no noticeable impact on performance nor will it have any noticeable impact on player appearance to the game due to this dirty check. Second, there's no way your players are noticing quarter-second delay in maps, even if it were happening. |
|
This patch is not meant to be "performance improvement" anyway A Minecraft CS:GO server that utilizes the Map, and 5 ticks delay per update is really slow and noticeable Edit link: https://youtu.be/i_0NrTb2Rsc |
Then do you explain the presence of the “dirty” check? |
|
What dirty check |
|
This patch has nothing to do with the check tho, it just make the interval configurable |
|
|
This is why I think you didn’t even read the patch you’re attempting to modify. If the data used to render the map is changed, the map already updates immediately. In this sense, the interval doesn’t even matter. The interval only serves to update the map data if for some reason the data is changed without the dirty flag being set (which should be never). Having the interval configurable at all is totally useless, as it’s value does not have any impact whatsoever on gameplay. |
|
I appreciate the clarification, in my case, the map (you can watch the video, it's faster) is slow. Changing the value works for me so I make this PR, maybe other servers also having this problem as well If this PR is closed then I will just port it to my fork :fork: |
|
@kev626 It will not be immediately rendered, it will check for dirty every 5 ticks as I told you on Pufferfish Discord. |
If you need a map to be immediately rendered to a player, you can do this via the API by calling Player#sendMap(MapView). There is no need for any patch. Regardless, it's not my project and purpur is free to add whatever they like, but this is truly not necessary. |
|
This patch actually fixes a mismatch between API behavior in Spigot and Paper. Perhaps this would be better brought up upstream? |
Mojang decided to increase the update interval of map to 5 ticks, in some server which utilize it this is kinda slow
This PR made the value configurable so the server admin can adjust as their liking
I tested this and having no issue, however I can't record a comparison video of it because of my potato pc :'(