simuwaerm
simuwaerm copied to clipboard
Comparison of rendering performance in different terminal emulators
I did a rudimentary test to compare rendering performance among Alacritty, Xfce4-terminal and Konsole. Xfce4-terminal has the least amount of flickering.
https://user-images.githubusercontent.com/1058151/184092182-dd20ab05-b668-423a-8304-2de5e9519c6c.mp4
Cool, thanks lots!
That's very interesting and weird. When I run it in Konsole, it looks exactly like your Xfce-4 screen capture. Terminals sure are the wild west, it looks different on every one. If someone knows remedies, feel free to share. I tried to flush as infrequently as possible, but oh well.
I also like what happens on Xterm. It runs perfectly smoothly, but doesn't understand unicode:

Here is my test on XTerm(330) for reference:
https://user-images.githubusercontent.com/1058151/184107939-ba61b9f7-527a-4c3b-a99c-7fa7de77bcd6.mp4
So, flicker is similar to xfce4-terminal and the unicode is rendering fine.
I wonder why Alacritty's performance was so poor. It uses GPU for rendering. Also interested to how Kitty would behave in this.
Kitty was one of the terminals I originally tested on. Sadly it flickers a bit, like this
:
I use macOS! (iTerm2 and fish shell)
I just tried to compile and run your program from source, and I can see some flickering too. Also, the colour doesn't look as gradient as it was intended?
https://user-images.githubusercontent.com/87855546/212538481-14cbdb62-3688-4d1a-b9bd-1f9f54c52144.mov
Thank you! Yes, I tried implementing the same behaviour with ANSI values for mac without being able to test it, which it looks like worked surprisingly well. Cool!
Sadly ANSI values don't have that high of a 'resolution', so that is why it looks a little bit choppy.