Skip to content

Improve performance of stroked SDFs #185162

Description

@gaaclarke

Currently SDFs for strokes are getting calculated twice and combined. According to the math in https://iquilezles.org/articles/distfunctions2d/ the sdf could be calculated once and transformed to a stroke with:

abs(sdf(p)) - half_width

We should make that optimization.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work liste: impellerImpeller rendering backend issues and features requeststeam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions