Skip to content

Use a more performant pathfinding algorithm #1561

@Ferocimo

Description

@Ferocimo

Server : git-Paper-1230 (MC: 1.12.2)
Plugin version : Citizens 2.0.24-SNAPSHOT (build 1567)
Config : https://pastebin.com/XW3FCirN
Timings : https://timings.aikar.co/?id=38f2ec8e33bc4b72abd80abb52a185cb#plugins
Save.yml : if really needed please PM. But this bug can occur even with one NPC, in the correct setting.
Server specs : CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
RAM: 64 GO
SSD: 450 GO

Hello,

If an NPC has not a clear path and cannot reach target (for instance, he's on a tree, or something is blocking the way), the CPU of the server starts overloading and the TPS drops massively. This can slow down the whole server with only one NPC.

For more information, and especially on server monitoring, there is a certain issue that apparently we can't talk about since it isn't posted by us even though we have the same issue, posted on Sentinel, number 179, that has done some research on the matter.

If needed we can also provide some testing and more data.

Thank you for looking into this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature RequestA suggestion for a feature to develop.Work To DoDevelopment team has work to do on this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions