Skip to content

High identity matrix allocation in web engine. #70888

@ferhatb

Description

@ferhatb

There are several optional parameters in shaders and other engine code that allocate identity matrices.

To optimize:
1- Use a const matrix, to protect against mutation down the line, add assert isIdentical.
2- On the web Matrix4.zero().setIdentity is used which is wasteful since Float32List(s) are initialized by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: contributor-productivityTeam-specific productivity, code health, technical debt.engineflutter/engine repository. See also e: labels.platform-webWeb applications specificallyteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions