Reproduction Steps
No idea for sure how to reproduce this, but I noticed this occurring with my Main Menu UI that contains many translatable text labels and has “ResetOnSpawn” enabled, so every time a client respawns it recreates and retranslates everything.
Expected Behavior
I expect, in the very least, translation to be attempted and displayed as each UI component is displayed, and for it to perform reasonably.
Actual Behavior
When the UI is given to the player on respawn, the replicator spends 20ms processing localization packets, and then an additional 20ms adjusting all the text labels, resulting in a huge lag spike every spawn. Several users have also been crashing, but I’m not 100% sure if this is the specific cause.
(see the big lag spike in this profile dump)
microprofile-20221212-082226.html - Google Drive
Workaround
I disabled translation on the UI and also moved it out of StarterGui so it’s not recreated all at once on respawn and I can stream it to the player slowly as they need it using scripts.
Issue Area: Engine
Issue Type: Performance
Impact: Very High
Frequency: Constantly
Date First Experienced: 2022-12-12 00:12:00 (-05:00)
Date Last Experienced: 2022-12-12 00:12:00 (-05:00)