You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not. Thanks for pointing out this issue. FindStructureQuests periodically check if a player has found the structure by calling World.locateNearestStructure.
I assumed that locating structures within a radius of 3 chunks wouldn't cause any performance issues. However, I just found this in the spigot documentation:
Do not assume that only a radius x radius chunk area will be checked. For example, Structure.MANSION can potentially check up to 20,000 blocks away (or more) regardless of the radius used.
I tried to make the task asynchronous using Bukkit.getScheduler().runTaskAsynchronously. However, this results in the following Error: java.lang.IllegalStateException: StructuresLocateEvent may only be triggered synchronously.
Seems like I cannot locate structures asynchronously? Will dig deeper into this when I have the time. I do not have a lot of experience with asynchronous tasks in bukkit development. Any ideas and suggestions are very welcome.
https://spark.lucko.me/MoRmNCYAIZ
The plugin is spiking my mspt very high, is the chunk loading request async?
The text was updated successfully, but these errors were encountered: