Skip to content

Destruction and recreation of every letter of text in every frame #1

@Appa002

Description

@Appa002

Currently, when text is written onto the screen, it is done so by calling Simple2D::Ui::createText. This function will read an std::string and create a series of Simple2D::RenderableUiElements, which represent each letter of the given string. Every frame all of these Simple2D::RenderableUiElements will be deleted in Simple2D::UiManager::renderAll just to be recreated in any Behavior::update.

This shouldn't happen for text which hasn't changed. And text which did change should use a minimal amount of deleting and recreating of Simple2D::RenderableUiElements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAlready existing feature needs improvement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions