Opened 5 years ago

Closed 5 years ago

#13 closed enhancement (invalid)

Priority Path-finding

Reported by: Mad Martian Owned by: Mad Martian
Priority: critical Component: Entity Sub-system
Version: Keywords:
Cc:

Description

Animals (typically livestock) causes the server to lag too much because:

  1. There are often a lot of them due to their quality as livestock
  2. They are treated with the same priority as any other mob

Since large numbers of livestock are often kept in confinement it makes no sense to assign the same priority for path-finding to them as for free roaming mobs. Livestock mobs should therefore be significantly nerfed in terms of movement and path-finding.

Change History (5)

comment:1 by Mad Martian, 5 years ago

Status: newaccepted

comment:2 by Mad Martian, 5 years ago

Improved as of 8.6.9-Blackberry, will continue to monitor this issue.

comment:3 by Mad Martian, 5 years ago

Update, still some significant lag issues related to a large number of chicks (~400). We can now consider improving the scheduler to deny path-finding requests based on server load.

comment:4 by Mad Martian, 5 years ago

I take it back, the Hydrazine path-finding implementation is already fast enough, it does not even register on the hot-spot radar even with ~600 chickens. It's the other AI tasks that are responsible for the load, specifically the entity move helper which doesn't technically have anything to do with path-finding.

At this point it would make more sense to implement a task scheduler at the high-level entity update tier. The only difference in terms of results from my previous comment is that it would selectively revoke any and all update CPU time for an entity rather than for just path-finding.

comment:5 by Mad Martian, 5 years ago

Resolution: invalid
Status: acceptedclosed

I'm closing this ticket due to my previous comment. A new ticket can be created that more accurately reflects the diagnosis.

Note: See TracTickets for help on using tickets.