Skip to content

(D2D) clip<RoundedRect> is expensive #309

Open
@smmalis37

Description

@smmalis37

Admittedly my test case (https://github.com/smmalis37/sudoku_rust) with over 700 labels visible at once may be a bit extreme, but this shows up in profiling as one of the most expensive functions throughout the whole app. This is due to a combination of things:

  • path_from_shape itself is expensive, spending lots of time in CreatePathGeometry, PathGeometry::Open and GeometrySink::close
  • both CreateLayer and PushLayer take up a lot of time
  • dropping the PathGeometry and the Layer at the end of the function are also surprisingly expensive

Metadata

Metadata

Assignees

No one assigned

    Labels

    perfperformance related issuepiet-direct2dissue in the direct2d backend

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions