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.

Activity

  1. self-assigned this
    on Apr 16, 2026
  2. added
    e: impellerImpeller rendering backend issues and features requests
    P2Important issues not at the top of the work list
    on Apr 16, 2026
  3. github-actions commented on May 8, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  4. locked as resolved and limited conversation to collaborators on May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions