-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
New finder over-explores when unable to find a path to target entity #2730
Comments
Can you show a picture of the path? |
the old one is like red and new one is like yellow attached 2 video use-new-finder: false use-new-finder: true the reason why i try to use new finder is because old finder move very abnormal, so i use new, but new is laggy |
Hm looks like you're flying and using NPC targeting which may account for some lag. |
i am actually using sentinel guard in the video ,indeed i was flying, but is the same when i walk on the ground, it just doesn't walk diagonally. (i have player tested , they can't fly) |
There are several config options in npc:
pathfinding:
new-finder:
iterations-per-tick: 5000
maximum-new-pathfinder-iterations: 10000 tweaking those iteration counts to be lower counts to be lower can generally help with new finder performance. Also, as you're using Sentinel, the Sentinel config option: # Whether to use Sentinel's entity chase pathfinder.
# If set to 'false', will use the Citizens built-in one instead.
workaround entity chase pathfinder: true May be relevant. |
thank you, i just tuned down those two citizen config i will see for some moment , thank you |
hello |
https://spark.lucko.me/1WJUePvOfE my tps just dropped to 1 with 30players , spark checked, is citizen lag |
I believe it's because the sentinel is unable to find a path to the player. There are mitigation strategies I need to implement for this; I have not done it yet. |
/version
output/version Citizens
outputLog file
https://paste.denizenscript.com/View/92230
config.yml
https://paste.denizenscript.com/View/92232
saves.yml
https://paste.denizenscript.com/View/92231
Profiler report
https://spark.lucko.me/rDZZKEsi3p
Description
using finder 1 is causing npc moving so strangely, so i used finder 2, but when i use finder 2, it have very serious lag spikes, you can see in the spark profiler.
The text was updated successfully, but these errors were encountered: