Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor FlxDrawTrianglesItem optimization #3121

Merged
merged 2 commits into from
Apr 21, 2024

Conversation

MaybeMaru
Copy link
Contributor

Uses openfl's vector length function instead of splice for a minor performance boost clearing the vectors.

@@ -101,10 +101,17 @@ class FlxDrawTrianglesItem extends FlxDrawBaseItem<FlxDrawTrianglesItem>
override public function reset():Void
{
super.reset();
#if (flash || openfl >= "4.0.0")
Copy link
Member

Choose a reason for hiding this comment

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

we don't support openfl versions older than 9.3.2, we plan to remove the other checks like this, soon. So let's not add more

Copy link
Contributor Author

Choose a reason for hiding this comment

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

should i remove the check then?

Copy link
Member

Choose a reason for hiding this comment

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

yes, please

Copy link
Contributor Author

Choose a reason for hiding this comment

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

there we go

@Geokureli Geokureli merged commit b39947f into HaxeFlixel:dev Apr 21, 2024
12 of 16 checks passed
@Geokureli
Copy link
Member

Thanks!

@Geokureli Geokureli modified the milestones: Next Patch, 5.9.0 Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants