Skip to content

Need to optimize color redrawing to reduce lag and flashes #9180

@mqudsi

Description

@mqudsi

I've been meaning to file this issue for years but needed to find the time to ascertain that it wasn't specific to my terminal emulator and just put it off repeatedly.

The current way that we handle edits in the middle of commandlines wrapping across multiple lines results in an extremely suboptimal experience that causes the colors to lag and shift while the commandline is being edited. This is best illustrated with an example, so here's a video showing the issue:

2022-09-05-161450.mp4

This screencast was taken with kitty as my terminal emulator, which is significantly faster than conhost -- the issue is even more visible there. It seems the colors are persisting in their location (which cell) while the text shifts, then fish recalculates the colors after the edit debounces?

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePurely performance-related enhancement without any changes in black box output

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions