mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-20 01:58:27 +00:00
[Performance] Fixed a large overhead issue where every single NPC in a zone was checking to depop themselves
as a swarm pet every 3ms regardless of being a swarm pet or not. Swarm pets now check to depop only when their timer is up
This commit is contained in:
@@ -2557,6 +2557,7 @@ void NPC::ClearLastName()
|
||||
|
||||
void NPC::DepopSwarmPets()
|
||||
{
|
||||
|
||||
if (GetSwarmInfo()) {
|
||||
if (GetSwarmInfo()->duration->Check(false)){
|
||||
Mob* owner = entity_list.GetMobID(GetSwarmInfo()->owner_id);
|
||||
|
||||
Reference in New Issue
Block a user