Skip to content

Conversation

@dudantas
Copy link
Member

Introduces a 1-second interval between party analyzer updates by tracking the next allowed update time. This prevents excessive updates and improves network efficiency.

Introduces a 1-second interval between party analyzer updates by tracking the next allowed update time. This prevents excessive updates and improves network efficiency.
Copilot AI review requested due to automatic review settings October 13, 2025 13:49
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds rate limiting to party analyzer updates to prevent excessive network requests by implementing a 1-second cooldown mechanism. This ensures updates are throttled to improve network efficiency and performance.

Key changes:

  • Added a member variable to track the next allowed update time
  • Implemented rate limiting logic in the update function with a 1-second interval

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/server/network/protocol/protocolgame.hpp Added member variable to track next allowed party analyzer update time
src/server/network/protocol/protocolgame.cpp Implemented rate limiting logic with 1-second cooldown in update function

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@sonarqubecloud
Copy link

Copy link

@libergod libergod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works perfectly with #3725

@github-actions
Copy link
Contributor

This PR is stale because it has been open 45 days with no activity.

@github-actions github-actions bot added the Stale No activity label Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Stale No activity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants