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:
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.
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.
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
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”