mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +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:
+3
-1
@@ -131,7 +131,9 @@ void Mob::SpellProcess()
|
||||
void NPC::SpellProcess()
|
||||
{
|
||||
Mob::SpellProcess();
|
||||
DepopSwarmPets();
|
||||
if (swarm_timer.Check()) {
|
||||
DepopSwarmPets();
|
||||
}
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user