From 144d419e670443e60fbe92312af8ac373e8248ea Mon Sep 17 00:00:00 2001 From: MightyTheArmiddilo Date: Wed, 22 Apr 2026 18:51:30 -0700 Subject: [PATCH] Change `FunkinGroup.updateChildren` to use the FlxPoint pool --- source/funkin/group/FunkinGroup.hx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/funkin/group/FunkinGroup.hx b/source/funkin/group/FunkinGroup.hx index cfadaadeb42..1e838aaf054 100644 --- a/source/funkin/group/FunkinGroup.hx +++ b/source/funkin/group/FunkinGroup.hx @@ -290,7 +290,7 @@ class FunkinGroup extends FlxSprite child.scale.x = scale.x * child.localScale.x; child.scale.y = scale.y * child.localScale.y; - var displace = new FlxPoint(child.localX, child.localY); + var displace = FlxPoint.weak(child.localX, child.localY); var dx:Float = 0; var dy:Float = 0; @@ -334,6 +334,8 @@ class FunkinGroup extends FlxSprite child.x = x + displace.x; child.y = y + displace.y; + displace.put(); + child.alpha = alpha * child.localAlpha; child.visible = visible && child.localVisible; // force child cameras to the group's cameras.