Skip to content

[OPTIMIZATION] Change FunkinGroup.updateChildren to use the FlxPoint pool - #7446

Closed
MightyTheArmiddilo wants to merge 1 commit into
FunkinCrew:developfrom
MightyTheArmiddilo:funkin-group-flxpoint
Closed

[OPTIMIZATION] Change FunkinGroup.updateChildren to use the FlxPoint pool#7446
MightyTheArmiddilo wants to merge 1 commit into
FunkinCrew:developfrom
MightyTheArmiddilo:funkin-group-flxpoint

Conversation

@MightyTheArmiddilo

Copy link
Copy Markdown
Contributor

Description

For some reason I had it make a new FlxPoint every time updateChildren ran so...

@github-actions github-actions Bot added size: tiny A tiny pull request with 4 or fewer changes. pr: haxe PR modifies game code. and removed size: tiny A tiny pull request with 4 or fewer changes. labels Apr 23, 2026
@Hundrec Hundrec added status: pending triage Awaiting review. type: optimization Involves a performance issue or a bug which causes lag. size: tiny A tiny pull request with 4 or fewer changes. labels Apr 23, 2026

@TechnikTil TechnikTil left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would probably be better to reuse the same point throughout the entire instance instead of pulling from the pool every update.

You could also use FlxSprite._point, which is supposed to be used for rendering. Since we don't really render, why not use it for something else?

@MightyTheArmiddilo

Copy link
Copy Markdown
Contributor Author

Superceded by/merged into #7753

@NotHyper-474 NotHyper-474 added status: rejected Issue did not pass review or PR cannot be approved. and removed status: pending triage Awaiting review. type: optimization Involves a performance issue or a bug which causes lag. pr: haxe PR modifies game code. labels Jul 4, 2026
@Hundrec Hundrec added status: duplicate Issue or PR is redundant to another. and removed status: rejected Issue did not pass review or PR cannot be approved. labels Jul 8, 2026
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

This pull request is a duplicate. Please direct all discussion to the original pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: tiny A tiny pull request with 4 or fewer changes. status: duplicate Issue or PR is redundant to another.

Development

Successfully merging this pull request may close these issues.

4 participants