mojira.dev
MC-152630

TPS unbearable when villagers are loaded

I was on the server by myself and decided to update it to 1.14.1. The TPS went from 20 to 10.

World Download, head North from spawn.

I had a village I built with around 60 villagers. They had a 2-floor dormitory with 24 rooms. Each room was 3x3 (interior), had three beds against the wall, and had two entrance doors (on the outside of the block) separated by a single column. The stairs going up were 3-wide and had a 2-wide landing on either side. There were no work blocks within the dormitory. I had a single door on each side, and another in the front.

I grouped work blocks of the same type together, and spread the groups throughout the village. There were three meeting spots. This was all contained with a 7-high, 1-thick wall, using a 3x3 piston door.

I have collision disabled for Villagers.

For whatever reason, (this occurs in both versions) for half of the day villagers don't make it very far towards their job or a meeting point before doing a 180, heading back through the dormitory door, and going in and out of a few dorm rooms. Another thing, I have a base near the village, and after placing my own cartography table, blast furnaces, etc a few villagers popped up with that job type, and they spend the entire day pressing into the corner leading towards my base. I tried breaking all the potential job blocks in my base and placing them in the village, but the villagers just ignore them and continue trying to get through the corner into my base. I don't know if these are related, and I can move them to another ticket later.

Linked issues

Attachments

Comments 10

Zachary Johnson

I made a comment on this ticket, but it was made for 1.14.1 Pre-Release 1, and has been marked as Resolved.

Duplicate of MC-138550

Zachary Johnson

@violine1101

No it isn't. This is exclusive to 1.14.1, and the TPS was manageable otherwise.

Ah yes, I missed that. Thanks, reopened.

I can also confirm similar issues in 1.14.2. I had an Iron farm in Spawn chunks on my server with over 50 villagers in one area. TPS<17 with just one player online. After removing all the villagers and unloading the area TPS immediately shot back to 19-20 with little fluctuation. Many people have been reporting that mob AI seems to be one of the main problems with the slowness server’s are experiencing in 1.14

Zachary Johnson

I ran the profile on 1.14.2, and went back to 1.14.1 to doublecheck, and 1.14.2 appears to have solved most of the issue, at least during the day. When it's the villagers' bedtime, the TPS drops to 14.

The amount of iron golems spawning had been causing some lag in 1.14 so I had created a command block on a loop to teleport them to the void. The profile results showed that the iron golems were affecting the TPS almost as much as the villagers. 

Another thing, is that the server seems to require regular restarts or the tickrate suffers massively, at least in 1.14, and I'm assuming in 1.14.2 as well. Given that there is still no simple, included method to auto-restart the server periodically, I'd say that's an issue as well.

Zachary Johnson

I logged back in to a TPS of 4. When nighttime comes the server becomes unplayable. Also, there were something like 30 iron golems spawned into the village, there doesn't seem to be any limit.

Is this still a problem on 1.14.4?

Yes this issue affects 1.14.4 and can cause servers to crash completely.

Yes. If you are running on a 1.14.4 server, it could crash the server

Zachary Johnson

(Unassigned)

Community Consensus

Entities, Mob behaviour, Performance, Village system

pathfinding, server, tps, villager

Minecraft 1.14.1, Minecraft 1.14.2

Retrieved