mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

Chat Delay with High Player Count

Open realArshin opened this issue 7 months ago • 1 comments

Describe the bug

When the server player count exceeds ~950 players, the in-game chat system starts experiencing noticeable delays. Messages take time to appear for players. Other systems are working perfectly fine even at high player counts: Commands execute instantly Client events trigger without delay Server events trigger without delay The issue appears to be isolated specifically to the chat system.

Steps to reproduce

  1. Increase player count to ~950+ players
  2. Send chat messages
  3. Observe delay in message delivery

Version

No response

Additional context

No response

Relevant log output


Security Policy

  • [x] I have read and understood the Security Policy and this issue is not security related.

realArshin avatar May 01 '26 16:05 realArshin

since other systems (commands, client/server events) are not affected this likely points to a bottleneck in the chat broadcast pipeline rather than general server load or network saturation

at ~950+ players, chat messages are likely becoming CPU-bound due to per-player event replication (triggerClientEvent / broadcast loop) and queue buildup on the server side

it would be useful to confirm whether the delay correlates with chat frequency spikes or specific chat modes (e.g. global vs team chat)

shadylua avatar May 03 '26 21:05 shadylua