-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Spigot 1.12 - If NPC cannot reach target, it overloads server CPU performance and cost lags #179
Comments
Can you get a more careful analysis of this? There's a plugin somewhere that shows method-by-method weights of CPU stressors, which will help identify what went wrong here. Quite possibly just a too big pathfinding range. |
I ll try to analyse. I tryed reduce pathfinding and range/chaserange from default 25 to 10, but it's not a solution, it's only reduce the chance if that happend. |
.... Also I find, if NPC is naturaly blocked, like he is in cage but see target, CPU will no overloads, NPC stats above like I described... NPC released |
CPU overloads to 95%. NPC info:
|
Try build DEV-133+ off http://ci.citizensnpcs.co/job/Sentinel/ |
I tryied this last version, still have problems :( |
Might have to elevate this to Citizens then, as this issue is related to pathfinding buggery. For a quick fix, lower all ranges, especially I did what I could on my end (in the commit in DEV-133) to prevent re-triggering the pathfinder when there's no point to it... but if it's retriggering itself, that's a Citizens fault probably. |
I'm thinking about a potential semi-solution for this: Catch the case if pathfinding fails, and intentionally delay any further pathfinding attempts for a while. Also I think I haven't mentioned here already: Also see for relevance, Citizens issue CitizensDev/Citizens2#1561 If you'd like me to add an option for the idea I mentioned above or similar, let me know. Until then, treating this issue as out-of-scope for a Sentinel fix (instead, it should be fixed in Citizens). |
Sever: Spigot 1.12 Build 201707090430
Plugin version: Sentinel 1.3.1
Hello, there is an issue. If NPC has not a clear path and cannot reach target (for example mob is on the tree), the CPU of the server start overloading (in my case up to 70% from normal condition) and its only ONE NPC. I dont know, what happens, if this issue will start with other NPCs on my server. It can cost big server lags.
example:
server start overloading: NPC [Straz] targeted the witch, but hasn't clear path and cant reach the witch, because mob staying on the stone wall
http://riftsite.cz/wp-content/uploads/2017/07/2-NPC-cannot-reach-target.jpg
server stop overloading: NPC [Straz] can again reach target, because has clear path to the witch ( I push the witch from wall)
http://riftsite.cz/wp-content/uploads/2017/07/3-NPC-reach-target-after-mob-is-in-path-range.jpg
Thank you for solving this
Best regards
Green
The text was updated successfully, but these errors were encountered: