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

Improve FlxDrawQuadsItem performance by pre-calculating alpha #2996

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

MaybeMaru
Copy link
Contributor

Just gets the null checked alphaMultiplier before the for loop to save on some small if statements

@Geokureli Geokureli merged commit 4ecef75 into HaxeFlixel:dev Jan 2, 2024
16 checks passed
@Geokureli
Copy link
Member

Thanks!

@Geokureli Geokureli added this to the 5.6.0 milestone Jan 4, 2024
@Geokureli Geokureli changed the title Save on some if statements Improve FlxDrawQuadsItem performance by pre-calculating alpha Jan 4, 2024
Geokureli added a commit that referenced this pull request Jan 4, 2024
@MaybeMaru MaybeMaru deleted the draw-quads-item branch April 21, 2024 15:26
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