Skip to content

Reduce latency for echo output #161

Description

@ruoso

If the browser decides to defer the rendering of the frame for some reason, the echo from keystrokes can become somewhat sluggish, which can create visible latency in the experience.

In my tests, if we have a awaitingEcho boolean state that is set to true whenever we send to stdin, and then trigger a synchronous render when that is true (and immediately set it to false again), results in a much more responsive experience, and since we only do it when waiting for an echo, it shouldn't have any impact in the performance when there's a lot of content coming from stdout.

Metadata

Metadata

Assignees

Labels

acceptedHuman-approved for implementationfeatureNew capability or product behavior requesttriage:doneMux triage report has been posted

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions