Skip to content

Draw Vertices Buffer Size #31270

@cmkweber

Description

@cmkweber

Can the buffer size for vertices indices be increased? We are seeing corrupted meshes and I believe the issue is that on the engine side the indices buffer is limited to uint16_t:

https://github.com/flutter/engine/blob/4b9966f5cb412a73fa50462b3aee9082f436a62a/lib/ui/painting/vertices.cc#L81

If this is the issue, than the amount of triangles that can be drawn in one call is ~22k. So when an Int32List of more than 65535 indices are passed, there will be overflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    engineflutter/engine related. See also e: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions