Lag spikes from ExperienceChat

Hi. So I am helping develop a game. We have been running into this one particular issue where every player would constantly lag spike, really really heavily, at random times, but pretty frequently.

From MicroProfiler I traced it down to the Chat, but as to what exactly it might be I have no idea:

However, there is also this, and I don’t seem to understand what this stands for:

Both cause one exact same issue: They would take ~50ms to run, and lag the client for anywhere from 1 to 3 entire seconds.

Some details about the game:

  • If the image is clear enough, our game sessions usually have anywhere between 100 and 300 players in one server instance.
  • Nothing hooks to TextChatService except Kohl’s Admin and Adonis. I personally have no experience using them, so if anyone does and knows they may cause issues, let me know.
  • Adonis is used to mute players.

If anyone can help out, much appreciated.

1 Like

I may have further tracked them down to this, but I’m pretty new at using Script Profiler (i literally just discovered it now lol), so I don’t understand much of what’s happening.

1 Like

Seems to be related to "SchedulerHostConfig.default" causing unbearable stuttering upon someone chatting in large servers. Will mark as solution once that’s solved.

one fix this worked for people is checking your Workspace.SignalBehavior setting, if its set to Immediate try changing it to Deferred, that alone seems to fix or at least heavily reduce the spikes

I am pretty sure we have it set to Deferred already.

Having this same issue, I posted a video of it happening on a related thread:

Weirdly, the “Detailed” microprofiler looks a bit different in my screenshot (perhaps I’m just on a different part of the frame). It happens mainly when someone chats or I focus the chat window by moving my mouse into it. However, there is one defining thing: “SchedulerHostConfig.default”