Skip to content

Avoid allocation per draw #16

Description

@kvark

gfx-rs itself doesn't use any allocations on a call-by-call basis, and it would be great if gfx_text didn't impose this overhead either. The allocations come from the constructed meshes and batches, even if implicit. What can be done:

  • have an OwnedBatch created once on init
  • update its Slice with updating the vertex/index buffers that the batch uses
  • send it to a stream as usual

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions