"Write Marshalled" lag spikes in microprofiler

Here’s a profiler dump

This is causing all sorts of lag spikes and it appears to call “attemptTranslation” and “Text Shaping+Layout” over and over and over again. We use custom localization, and We only use Localization service for RobloxLocaleId, so that’s why we assume this must be an engine bug? Any insight into what this could be?

Like here it’s apparently taking 84 ms

14 Likes

This is probably from SettingsHub. Labels in older frames don’t show. Here are my screenshots that look almost identical but show the script name:

I’ve previously seen this whenever there was a lot printing to the output. I think instead of making new labels, the dev console just changes the text and color of existing labels, which causes text layout and localization to have to run for over one hundred labels.

Evidence contributing to this factor is that if I join the game (same as the one ColdSmoke was in) and don’t open the dev console then I don’t see these lag spikes. I also had reasonable performance on my phone until I opened up the dev console.

In this game, both me and ColdSmoke have access to the server console log, and the server console log is near-constantly printing out that it has saved a player’s data.

Some more screenshots

image
(SettingsHub bar is hidden because I’ve zoomed in so much. This shows up over-and-over under SettingsHub.)

image

image

image

image

1 Like

I’ve been experiencing this too, this is a massive annoyance and I’m getting extremely irritated with how it’s not been fixed yet.

It’s been reported for over a year:

https://devforum.roblox.com/t/what-is-settingshub-and-why-does-it-lag-my-game/104619

https://devforum.roblox.com/t/any-idea-what-this-is/35748

2 Likes

I’ve basically given up reporting this. Over the past 2 years, I’ve mentioned this 3 times. Never been fixed.

6 Likes

Hey, very late reply, however I encountered this bug with my new skinned mesh character which I added around 1 week ago.

image

This appears for some time in microprofiler and then it goes away and never comes back. It takes around 40 ms so it consumes lots of resources and drops the FPS by quite a lot.

If more info is needed, I can provide them, as well as this specific character model.

7 Likes

Im finding this similar frame as well. Not sure how to reproduce but occurrence is rather low- appearing once every few minutes.

Worker
Write Marshalled

Another screenshot of the worker:
image

4 Likes

I’ve ran into this issue as well, it’s really weird how it works for me but whenever I’m deleting a tool inside a player’s backpack on the server, it causes this lag spike… Twice, somehow, but then after this occurred, doing the same thing no longer lag spikes.
I’m genuinely confused, all I’m doing is just destroying an instance like any other ones, and this has not happened before.

Later on, I’ve digged into more details and found that in my case, when I try to delete the tool’s scripts in the explorer tab, it no longer lag-spiked.
For test purposes I like to add tools created by Roblox like the Space Sandwich, so their scripts are nothing fancy and are pretty light-weight.
So this time I tried deleting the tool’s scripts in a script (before destroying the tool, I destroy the tool’s scripts first), and as always it lag spikes.
microprofile-20250504-195633.html (4.6 MB)
System Information:
AMD Ryzen 5 3600 6-Core Processor
NVIDIA Geforce GTX 1660 SUPER
16 GB RAM

It would be better off creating a new bug report for this. This bug report is very old and is most likely closed now. The chances that an engineer will look at it now is quite low.

1 Like

It’s been a bit slow lately with engineers replying to specific reports …

1 Like

Still very much occurring. Especially with StreamingEnabled :confused:

2 Likes

This has gotten some attention by a Roblox employee. Direct your efforts to fixing it here:

3 Likes