Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Drawing text on the canvas is too slow #86

@jodigiordano

Description

@jodigiordano

This is currently the main performance bottleneck of the app.
Since the support for richer text, the cost to draw text on the canvas skyrocketed.

There is a lot of room for improvement here, for example:

  • Instead of tokenizing text per word, it could be tokenized based on tag.
  • Font properties can be calculated once and re-used.
  • When moving stuff around in the canvas, if the text did not move, don't redraw it. (i.e. slow first draw, fast subsequent draws)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions