Town NPCs Performance Saver

NO LONGER SUPPORTED. Use at your own risk. Code is open.

Could’ve been a better solution. This mod disables most systems of town NPCs (AI, physics, collision, etc.) from a distance, so they consume far fewer resources when you’re not near them. It can help, for example, during very demanding fights when you have too many town NPCs in your world. They unfreeze automatically when you come closer.

Only the lightweight, gameplay-essential systems remain active — arriving, housing, happiness, map head icons, and others — while the resource-heavy ones are disabled. Town NPCs do not disappear from the world, so these systems must work correctly.

Configurable Features:

  • Distance-based freeze for all town NPCs
  • Separate horizontal and vertical distance sliders in tiles (X: 90, Y: 65 by default)
  • Invincibility for all town NPCs
  • Custom exclusion list (NPCs that will never be frozen)
  • Wrath of the Gods compatibility
  • Log to chat in singleplayer and to host in multiplayer
  • Adjustable update intervals

Compatibility:

  • Wrath of the Gods: The main story character is excluded from freezing to prevent bugs related to her role in the mod’s events.

(Note: mod’s effectiveness may vary depending on your mod setup, hardware, and in-game situations — though that’s fairly obvious.)

Leave a Reply

Your email address will not be published. Required fields are marked *