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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Optimize graphx #616

wants to merge 10 commits into from

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

forgot to remove some whitespace!

@ZERICO2005 ZERICO2005 marked this pull request as draft July 14, 2025 20:09
@ZERICO2005
Copy link
Contributor Author

got the white-space fixed now

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.

1 participant