Description:
When I enable the AI Playerbot module and command a bot to attack a creature, the server's World Delay spikes drastically (reaching 2000ms+), causing severe lag and stuttering.
Steps to reproduce:
Enable AI Playerbots.
Summon a bot (.bot add <name>).
Engage in combat with any creature.
Check the server console (server info), and the World Delay will skyrocket from ~10ms to over 2000ms.
Environment:
Core Version: Mangos One v0.22 (Built on 2026-09-02, Commit: b208357)
OS: Windows (x64)
Hardware: i5-14400 (The CPU usage is not maxed out, but the main thread seems to be blocked).
Bots: Only 1 bot is active.
Config: MapUpdateThreads = 4, mmap.enabled = 1
Additional Context:
The server runs perfectly fine when no bots are in combat. However, the moment the bot enters combat, the entire world freezes for a few seconds. There are no continuous error logs spamming the console. It seems like the 2010-era ike3 Playerbot AI logic is blocking the main map update thread when it tries to calculate combat actions (possibly pathfinding or spell casting).