Jump to content

Performance of Villager AI vs others - where is the bottleneck?


Turtledove

Recommended Posts

I'm creating a new type of villager with performance in mind, the goal is to have at least 50 villager entities loaded nearby without causing significant frame drops. I've noticed that if I have 50 villagers loaded in a village vs 50 creepers, performance is hardest hit with the former. I think this might have to do with the fact each villager is constantly looking for new paths, searching hash tables, etc, but is pathfinding really that expensive an operation, or is there something else?

I have a decent CPU+RAM (Ryzen 5 2600x with 16GB of DDR4 2933 memory) and loading 50 villagers causes the game to drop up to 20 frames. Of course it'd get worse on lower end hardware or the more villagers I spawn.

Edited by Turtledove
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.