Skip to content

Optimize graphx #616

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

Merged
merged 12 commits into from
Jul 18, 2025
Merged

Optimize graphx #616

merged 12 commits into from
Jul 18, 2025

Conversation

ZERICO2005
Copy link
Contributor

@ZERICO2005 ZERICO2005 commented Jun 12, 2025

Non-transparent sprite rotation was further optimized by a good amount.

Optimized the clipping function for gfx_Sprite, gfx_TransparentSprite.

Sprite flip/rotate90/rotate180 routines were optimized.

Other routines were also optimized, mainly in ways that reduce size while maintaining or improving performance. Although most performance gains were constant (i.e. 4F faster per function call) instead of linear (i.e. 2F * line_count faster).

I also updated the sprites_rotate_scale demo. It varies the scale of the rotated sprite, and shows the user how to center the sprite

@ZERICO2005 ZERICO2005 marked this pull request as ready for review June 14, 2025 21:18
@ZERICO2005 ZERICO2005 marked this pull request as draft June 14, 2025 22:44
@ZERICO2005
Copy link
Contributor Author

got the white-space fixed now

@mateoconlechuga mateoconlechuga merged commit 6c0c574 into master Jul 18, 2025
9 checks passed
@mateoconlechuga mateoconlechuga deleted the optimize_graphx branch July 18, 2025 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants