Prevent the subtitles text from being set each frame

This commit is contained in:
sector-a
2025-10-13 11:15:22 -06:00
committed by Hundrec
parent b4a1730e37
commit 714af8ebe0
@@ -75,6 +75,8 @@ class Subtitles extends FlxSpriteGroup
{
visible = !hide;
if (subtitleText.text == text) return;
subtitleText.text = text;
background.makeGraphic(Math.ceil(subtitleText.width), Math.ceil(subtitleText.height), FlxColor.BLACK, true);