Skip to content

Severe Lag at Specific Locations When Using CustomNPC-Plus (Freezing NPCs Temporarily Fixes It) #263

@zeng-github01

Description

@zeng-github01

Issue description:
When I enter specific locations in my migrated world, the game experiences extreme lag (massive FPS drop and near-freeze). After testing with VisualVM, it appears that NPC-related logic is consuming a large amount of resources in those areas.
If I use the NPC Wand and enable Freeze NPCs, the lag is immediately and significantly reduced. This strongly suggests that the issue is related to NPC AI, pathfinding, or collision processing.

Additional Notes
• This world was migrated from Minecraft 1.6.4, so some NPC data or NBT structures may be outdated or incompatible.
• The lag only happens in certain chunks, which may contain old NPCs or corrupted NPC data.
• Freezing NPCs consistently removes the lag, so the problem seems tied to active NPC behavior.
• This issue may be related to the previously reported NPC Spawner bug that caused severe lag. The symptoms are almost identical, so I am not sure whether this is a derivative or secondary effect of that problem.

Expected Behavior
NPCs should not cause extreme lag when entering specific areas, even in migrated worlds.

If crashed, link to crash report (use a site such as pastebin):

Versions:

  • Minecraft: 1.7.10
  • Forge:
  • CustomNPC+: 1.10.2

Can it be reproduced with just CustomNPC+? If not, list the other mods required to reproduce the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions