Skip to content

Commit

Permalink
Performance: Activity now throttles down more as the load on the serv…
Browse files Browse the repository at this point in the history
…er increases
  • Loading branch information
mostlikely4r committed Dec 18, 2024
1 parent 383f487 commit 4214da0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions playerbot/PlayerbotAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5567,9 +5567,10 @@ std::pair<uint32, uint32> PlayerbotAI::GetPriorityBracket(ActivePiorityType type
case ActivePiorityType::HAS_REAL_PLAYER_MASTER:
case ActivePiorityType::IS_REAL_PLAYER:
case ActivePiorityType::IN_GROUP_WITH_REAL_PLAYER:
return { 0,0 };
case ActivePiorityType::IN_INSTANCE:
case ActivePiorityType::VISIBLE_FOR_PLAYER:
return { 0,0 };
return { 0,5 };
case ActivePiorityType::IS_ALWAYS_ACTIVE:
case ActivePiorityType::IN_COMBAT:
return { 0,10 };
Expand Down Expand Up @@ -5634,11 +5635,11 @@ bool PlayerbotAI::AllowActive(ActivityType activityType)
case ActivePiorityType::IS_REAL_PLAYER:
case ActivePiorityType::IN_GROUP_WITH_REAL_PLAYER:
case ActivePiorityType::IN_INSTANCE:
case ActivePiorityType::VISIBLE_FOR_PLAYER:
case ActivePiorityType::IS_ALWAYS_ACTIVE:
case ActivePiorityType::IN_COMBAT:
return true;
break;
case ActivePiorityType::VISIBLE_FOR_PLAYER:
case ActivePiorityType::IN_COMBAT:
case ActivePiorityType::NEARBY_PLAYER:
case ActivePiorityType::IN_BG_QUEUE:
case ActivePiorityType::IN_LFG:
Expand All @@ -5649,7 +5650,6 @@ bool PlayerbotAI::AllowActive(ActivityType activityType)
case ActivePiorityType::IN_ACTIVE_MAP:
case ActivePiorityType::IN_INACTIVE_MAP:
default:
return false;
break;
}
}
Expand Down

0 comments on commit 4214da0

Please sign in to comment.