Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@dnfield
Copy link
Contributor

@dnfield dnfield commented Oct 13, 2022

Adds a benchmark for creating polylines.

I have a WIP patch locally that vastly improves quadratics and should be extensible to improve cubics as well. Want to land this first to have some data about how much improvement we're talking about.

@skia-gold
Copy link

Gold has detected about 1 new digest(s) on patchset 3.
View them at https://flutter-engine-gold.skia.org/cl/github/36731

Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

LGTM

@dnfield dnfield added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 13, 2022
@chinmaygarde
Copy link
Contributor

chinmaygarde commented Oct 13, 2022

Do the values of the control points of the curves matter to the benchmark? Perhaps you can generate them with something like a Mersenne twister engine with a set seed. Then have that seed be parameterized in the benchmark.

May just make the benchmark more readable and allow for greater combination and configurability.

@chinmaygarde chinmaygarde changed the title Add polyline benchmark with lots of cubics and quads [Impeller] Add polyline benchmark with lots of cubics and quads. Oct 13, 2022
@dnfield
Copy link
Contributor Author

dnfield commented Oct 13, 2022

The values should be stable from one run to another.

@dnfield
Copy link
Contributor Author

dnfield commented Oct 13, 2022

I'm realizing we'll also want a benchmark that includes tessellation, since it may otherwise be hard to tell whether a point reduction will beh elpful or not.

@chinmaygarde
Copy link
Contributor

The values should be stable from one run to another.

With a specific seed, they will be.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App e: impeller

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants