Skip to content

Music sequencer example: Unnecessary UI rerendering #380

@chaosprint

Description

@chaosprint

Currently, music_sequencer example is a little bit laggy. Are all Rects getting re-rendered every frame?

Similarly, in todo example, if you type something in the texteditor and move the cursor, all the text all be rendered, which is unnecessary. If you look closely at the Hello in the web client (https://ambient-demo.netlify.app/), you will find the same issue.

The source shows that two new Text areas are constantly created:
https://github.com/AmbientRun/Ambient/blob/main/shared_crates/ui/src/editor/text_editor.rs#L173-L195

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic:performancePerformance enhancements, regressions, etctopic:renderingRendering architecture and implementationtopic:uiUser interface

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions