Prevent the subtitles text from being set each frame
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user