← Back to context

Comment by sushisource

5 years ago

Sure, maybe I need to add "within reason". I agree I want my keystroke to appear reasonably quickly, let's say under 200ms to fit some of the stuff in the post.

Alacritty used to make kind of a big deal of these "benchmarks" on it's main page, and they don't any longer because the software improvements in the terminal are likely completely overwhelmed by whatever keyboard/monitor/OS you happen to be using.

That's the point. If you really care about this stuff, the terminal isn't exactly the place to go improve stuff unless it was way worse than it should've been in the first place.

200ms is really, really slow. You almost certainly type familiar words faster than at 5cps. You'd notice and feel it, even if you don't. The thresholds are obviously different for what one typically perceives as slow or insufficiently responsive but at 200ms, almost everything stops feeling responsive.

  • The exact number really isn't the point. The point is if the terminal emulator is 1% of that 200ms (or 100, or whatever), then who gives a shit. You should be buying a better monitor first.

    • I don't think the terminal emulator matters that much below some number, it's just that you picked a really high number and that the perception of slowness is neither linear nor the same across types of activities. I think this is generally a little bit of a weakness in the article itself.

200ms is a lot of lag. When trying to hjkl in to a specific character on the screen (yes, I know I should be using the 'f' verb more) that can add up quick.

Also note that alacritty's benchmark are throughput oriented, not latency oriented. The benchmarks measure how fast it can tear through data, not how quickly pixels change on screen.

But, rendering the entire terminal buffer is slightly overkill when only a few pixels changed, and the time it takes can end up significant on weaker devices driving high resolution displays.

As a result, Alacritty doesn't have the best "time to light" performance, and there have been long debates in the issues about it.