mojira.dev
MC-217906

Large amounts of axolotls cause performance issues

The Bug

Axolotls' AI is too slow, causing server performance issues.

Compared to other mobs, such as husks, or foxes (which also have a well-developed AI), Axolotls AI causes intensive lag.

How to reproduce:

  1. Create the world without any entity

  2. Spawn around 300 axolotls
    ❌ Notice that ms increases more noticeably, compared to other mobs in the same amount

Linked issues

Attachments

Comments 10

Does this still occur if the axolotls are spawned in water instead of on land?

did you think that too many entities cause lag?

and axolotls are new ,not tottaly finnished there so it has not had a performance update

It is logical that such a number of mobs will cause terrible lags. However, compared to the same foxes, axolotls significantly degrade performance. Just because they're new doesn't mean anything.

I tested this with a command block spawning around 250 to 300 mobs in a superflat world and axolotls caused basically double the impact of other tested mobs: turtles averaged 11 ms, foxes averaged 12 ms, bees averaged 10 ms and axolotls averaged 22 ms.

Maybe it’s becouse axolotls are trying to pathfind to water, something other mobs don’t do

I don't think that is the main cause, because as far as I know turtles also attempt to pathfind to water. Also, the lag happens even when the axolotls are already in water.

Iosiv Visokogorskiy

(Unassigned)

Confirmed

Low

Performance

lag, mob

21w08b, 21w11a, 21w13a, 21w14a, 21w17a, ..., 1.17.1 Release Candidate 1, 1.17.1, 21w37a, 21w38a, 21w39a

21w40a

Retrieved