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

Add support for ulab.numpy float vectors in Vertex2f() #9589

Merged
merged 3 commits into from
Sep 3, 2024

Conversation

jamesbowman
Copy link

@jamesbowman jamesbowman commented Sep 3, 2024

Using numpy greatly increases speed when drawing complex geometry.
image

Using numpy greatly increases graphics drawing for complex geometry.
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

Could you conditionalize this so the new code is used only #if CIRCUITPY_ULAB is true, and the old way is used otherwise? It's possible to set up complations that way, so that _eve is enabled but ulab is not, and it would be good to support that combination. Thanks.

This allows _eve to build without ulab.
@jamesbowman jamesbowman requested a review from dhalbert September 3, 2024 04:20
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

Looks good! I don't have an _eve setup to test this, but obviously you are testing this. The conditionals look fine.

@dhalbert dhalbert merged commit 5f66400 into adafruit:main Sep 3, 2024
191 checks passed
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