Skip to content

UberSDF and circle contents heap-allocate std::function captures per draw #192673

Closed

Description

@artemkulyk

UberSDF and circle contents build per-draw callbacks that capture the sampler binding and geometry result by value. Those captures exceed the std::function small-buffer optimization and heap-allocate on every draw.

DrawGeometry invokes the callbacks before returning, so capturing by reference is valid and removes those allocations.

Related to #164607

Activity

  1. added
    engineflutter/engine related. See also e: labels.
    c: performanceRelates to speed or footprint issues (see "perf:" labels)
    e: impellerImpeller rendering backend issues and features requests
    on Sep 12, 2026
  2. mbcorona commented on Sep 12, 2026

    @mbcorona
    Member

    Related to #164607 (the same perf series), not a duplicate.
    Routing to the engine team.

  3. added
    P1High-priority issues at the top of the work list
    on Sep 14, 2026
  4. added a commit that references this issue on Sep 17, 2026
    642d396
  5. github-actions commented on Oct 1, 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.

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

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: performanceRelates to speed or footprint issues (see "perf:" labels)e: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.team-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