Hi. Players in my game (shadovis rpg) were experiencing major lag on a constant basis for the past week without me having touched the game. Profiler shows it’s due to LocalisationService :: attemptTranslation operations costing a ludicrous 20ms.
I’ve fully disabled every source of localization including display and capture, so I have no idea how to toggle it off. But it was severely impacting my game in terms of performance and discovery on the platform. It’s likely that the issue was performing far worse on lower end devices as well.
Attached in private is the isolated code block which causes the issue. It’s simply caused by instancing new labels often. I’ve fixed it for my game, the code that caused it was ‘sloppy’, but indubitably there are other games that would be severely affected because of an issue like this. It was making ~20 labels per second with 99%-100% the same text on them, which was enough to cause the game to be unplayable. If creating ~20 labels/sec causes major breaking lag, then it should be something looked into. Specifically because even if this process was slow prior it was acceptable due to the minimal performance effect, which has now become x100 slower due to auto-translation.
A private message is associated with this bug report