Skip to content

feat: make formatted text parsing and rendering more efficient #1095

@dragoncoder047

Description

@dragoncoder047

Is your feature request related to a problem? Please describe.

currently the text() component re-parses and re-formats the text on EVERY update, so if you want to render a large amount of formatted text, the best solution is to have the object be paused and then you don't get animated letters (e.g. a formatting function that depends on time()). It would be cool if the text could be optimized to only re-parse when the text is changed, and then keep the parse data and just recalculate the formatting parameters on each character on update instead.

Any more information?

I'm making a thing that uses text to render primarily (like 6000+ characters that need to be parsed) and it makes my CPU fans go into turbojet mode if I leave it onscreen for more than like 30 seconds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions