nwnxee / unified

Binaries available under the Releases tab on Github
https://nwnxee.github.io/unified
GNU General Public License v3.0
129 stars 92 forks source link

Event for excessive pathfinding instructions #1707

Open eveferon opened 10 months ago

eveferon commented 10 months ago

As known in the community for quite a while, pathfinding for objects can be a heavy burden for a server that can dwarf any other performance issues.

The screenshot below illustrates the situation where one creature (a PC player in that case) that is placed sub-optimally on the area (standing dangerously close to a table) can cause 25x more load for the server than all the scripts together while 40 players are online on this particular PW.

image

The second screenshot illustrates how big of a load it is compared to everything else happening on a PW.

image2

Other similar cases are known throughout the community.

In a discord discussion, there was an idea to create an event to signal such excessive load from pathfinding, giving an option for dealing with the object (moving it or destroying it).

Note