CoreScripts/ExperienceChatMain causing enormous lag

Excessive lag caused by one of roblox’s core scripts. As appears, all it does is setting TextTransparency and TextStrokeTransparency. This problem occurs in my game when there is a big playercount (100-200 players in a server). I have also concluded that the lag spike occurs when someone sends a message in chat. Hiding the chat with StarterGui:SetCoreGuiEnabled doesn’t remove the problem. Hiding the chat ui with ChatConfiguration also does nothing. This problem is really frustrating as it causes players of my game to experience horrible lag, because they send a lot of text messages every second!

Expected behavior

Players shouldn’t be experiencing massive lag spikes whenever someone sends a chat message. Considering that all the script does is setting some transparency and indexing some values (as you can see inside the mircoprofiler screenshot).

Could you send a link to the game you referred to in your post? Do you have a copy of the microprofiler dump?

The game is actually a football league, so we don’t have a huge playercount in a given place/stadium at all times. I will provide you with a mircroprofiler dump tho. I’m getting one at the next event when there is a lot of players again.

( ✦ ) Copenhagen Parken - Roblox

But this is one of the stadiums if you still need it.


image


image

That’s all I have for now. I will get back with the microprofiler thing asap.

microprofile-20251010-220558.html (10.0 MB) - example no. 1

microprofile-20251010-221257.html (4.3 MB) - example no. 2, at the time of recording there were 128 players with around 50-minute server uptime.

Finally, a big enough match for me to record the dumps.

Another examples.

microprofile-20251019-224622.html (10.0 MB)

microprofile-20251019-224522.html (6.1 MB)

both times - 200 players in the server.
game - ( ✦ ) Belfast Park - Roblox

Also, are you able to tell me if this is problem is acknowledged and being worked on? Thanks.

This is still a major issue, I was testing with 150+ players today and I look into the microprofiler to see where the frame spikes are coming from, and the thing that sticks out the most is just how bad ExperienceChatMain is performing. Massive framerate spikes that get worse the longer the game goes on. I don’t know if it’s saving every message or what, but it gets quite bad.

As far as my ability of reading the microprofiler goes I can tell that these lag spikes are caused by TextTransparency and TextStrokeTransparency ONLY. It is like thousands upon thousands calls to change these 2 properties.

And yes, you’re right about it getting worse as time goes on, which I think is caused by the fact that it does the calls to all the chat messages that the player has received EVEN if they’re not visible. Longer you play > more messages there are > more calls.

And as I mentioned in my previous posts, hiding the chat with :SetCoreEnabled or ChatWindowConfiguration.Enabled does absolutely NOTHING, so this all doesn’t make sense to me. Like what’s the purpose behind all these calls when player doesn’t even see the chat!!!

So I strongly believe this is a very easy fix for roblox. What you could at least do is make it so it doesn’t make these calls when the chat is not visible.
Or make these calls ONCE you open/close the chat window as I think the reason behind them is to update the chat ui accordingly to chat configuration properties. If this is the case then just make the calls to change transparency when the configuration changes.

Please, roblox, I beg you, fix this. I repeat myself, I strongly believe this is an easy fix, please, give it a try, please!!! My game is borderline unplayable because of this since there is a lot of people all the time and they constantly send something in the chat.

This is ridiculous.

The chat has been recently fully disabled in my region, I can’t send/receive ANY chat messages. Like at all.

Guess what? I still experience the exact problem!!! Not as frequently tho, but still. There are those random lag spikes becase of countless TextTransparency and TextStrokeTransparency writes. HOW??? There isn’t a single possibility to see/write any chat messages :\

Exact same thing happening for me. It just gets worse the longer you play. I have 100 player servers and the client stutters terribly, even on my PC which otherwise is averaging 140fps.

microprofile-20260213-115929.zip (7.9 MB)

microprofile-20260213-115716.zip (8.5 MB)

link to game

Exactly. My game is borderline unplayable in huge matches with 200 players + queue, this is just ridiculous how roblox haven’t done anything, considering that it is most likely a very easy fix (stop updating textransparency+textstroketransparency on every message).

P.S. love grg, one of my favourite roblox games aot :wink:

Can confirm, experiencing the same lag issues in my games.

this still happens and tanks my framerate to ~30fps when it usually runs at 165fps just fine

also!!! the textchatservice corescripts are just TERRIBLE AND BUGGY IN GENERAL

  • messages will randomly choose to appear at the top of the window making them appear to have failed to send unless you scroll up
  • sometimes the corescript just breaks and chat is gone until you rejoin
  • uses react-lua

Is there another thread talking about this? I’m having the same issue in my games and noticing it in OTHER games, however some people don’t notice it at all. It’s especially noticeable with focusing the chat window. This is extremely annoying.


this is STILL happening, but only after staying in the game for like 10+ minutes and having a few messages in the chat, also hovering over the chat causes massive lag aswell, from SchedulerHostConfig.default this time

microprofile-20260222-152242.zip (4.5 MB)
here’s a microprofiler dump of the issue and link to the game

Experiencing the same performance regression issue with the chat. This issue only occurs after a decent amount of time has passed, implying ExperienceChatMain has a memory leak that slowly tanks frame times more significantly over time. The amount of players actively chatting & the number of chat messages seemingly plays a role as well. More activity = more lag, over time.


Also, as mentioned in a previous reply, hovering over the chat window again, and again causes massive lag spikes, even more than ExperienceChatMain handling the output of a Player message.

microprofile-20260222-102049.zip (4.3 MB)

I noticed this issue started happening more often after the introduction of Locked chat messages & other additions following the Age Check additions, such as the Trusted tag in Chat. This happens in all Experiences, so no particular game link will help.

yeah as I’ve pointed out above it is just TextTransparency and TextStrokeTransparency calls​:sob::sob: Please, roblox, do something about this!!!

Jailbreak is suffering from this problem and it is causing massive FPS drops.