Skip to content

Stop re-creating BasicSprite's default color #2059

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

Conversation

pushfoo
Copy link
Member

@pushfoo pushfoo commented Apr 9, 2024

TL;DR: We duplicate a value equivalent to arcade.color.WHITE, so just use WHITE instead

Why?

  • Faster
  • Less RAM used

@pushfoo pushfoo changed the title Stop re-creating BasicSprite's initial color each time Stop re-creating BasicSprite's default color Apr 9, 2024
@Cleptomania Cleptomania merged commit 1a35005 into pythonarcade:development Apr 9, 2024
7 of 8 checks passed
@pushfoo pushfoo deleted the basicsprite_color_fix branch April 13, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants