Skip to content

Conversation

notnullnotvoid
Copy link
Contributor

This should simplify the code and remove some boilerplate, as discussed here processing/processing#5256 (comment)

I have tested this and it doesn't seem to make a significant performance difference in my benchmarks. However, a further optimization could be to cache all or part of the circleDetail() calculation when tessellating a line path, since (I think?) matrices either are assumed or can be proven not to change during that time.

This should simplify the code and remove some boilerplate, as discussed here processing/processing#5256 (comment)

I have tested this and it doesn't seem to make a significant performance difference my benchmarks. However, a further optimization could be to cache all or part of the circleDetail() calculation when tessellating a line path, since (I think?) matrices either are assumed or can be proven not to change during that time.
@codeanticode
Copy link
Contributor

@notnullnotvoid thank you, I will review these changes and include in the next bugfix release after 4.1, which I'm trying to push in the next few days.

@codeanticode codeanticode changed the base branch from android-0276-v4.1.0 to android-0277-v4.1.1 November 4, 2019 00:01
@codeanticode codeanticode merged commit fc22703 into processing:android-0277-v4.1.1 Nov 4, 2019
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