179 points · by gjvc · 3y ago · 136 comments
That used to be the only way to make a graphical program fast, but these days hardware is so fast you can render an entire scene before the next screen refresh and still have cycles to spare. As long as you initiate rendering early enough, it's hard to go much faster.
I'm curious how foot compares to older fast terminal emulators such as Eterm, xterm, and rxvt. I think libvte is neat (anyone can write a terminal app now) but is it resulted in terribly slow programs like gnome terminal. Before that terminal emulators tended to be much faster -- they had to be, because hardware was so much more limited.
The idea that it's slow, that's new to me.
foot 0m9.410s
alacritty 0m16.881s
konsole 0m36.737s
gnome-terminal 1m1.096s
xterm 1m16.919s
Foot has an page that explains when and why it's fast, and also when it's not, compared to alacritty.https://tomscii.sig7.se/2020/12/A-totally-biased-comparison-...
And I don't really care that much but I will say that while it is a bit of a dog in the bulk display race, no one beats xterm in the keyboard latency contest.
1. They "like" xterm because i get value out of screen tearing and feeling like they can catch what is scrolling by (even though it's literally seconds slower) 2. They don't like the 40 fps cap it currently has because it predates reliable access to vertical sync information in applications. 3. They are using the GTK 4 port which draws with cairo and uploads surface data on every frame update.
The patches I put together for VTE this week (while having some down time with Covid) address a portion of that by making it render fonts/rectangles/emoji/etc on the GPU using GTK's OpenGL renderer (which I also wrote a large portion of).
Long dumps of output with VTE seems to be fast enough, at least with a barebones program that creates a VTE widget and doesn't do much else. But Gnome Terminal was noticeably slower than my naive program, last time I tried it. I don't know why.
Between then and now, I ended up trying every emulator. The libvte ones tended to be slow, buggy, and missing features (although, nowadays, it's sorta cleaned up its act, but not entirely). The terminal community has been able to write three emulators that make for good urxvt replacements: alacritty, wezterm, and kitty.
Foot seems like its trying to join those three, but it's lack of other-OS support (since it's focusing on being, purely, the best possible Wayland terminal) kind of holds it back (unless you're only using Linux, then obviously this doesn't apply to you).
GNOME terminal works and looks pleasant to boot. In fact it works so well that I almost never think of it although I use it all the time.
You don't notice it until you get into a situation where the terminal (emulator) insists on showing you everything flying by, instead of just skipping to the end, in which situation you may be waiting a really long time. Some emulators also cannot deal with, say, 1 million lines of scrollback and searching.
There are a few terminal emulators that are fast enough that further optimization is mostly for the heck of it...
And ugh, gnome terminal. The internet explorer of terminal emulators, only used to install foot and alacritty.
It seems that many terminal emulators can’t or won’t support them, because they are hard to render properly.
Sticking to wezterm for now.
https://www.gamingonlinux.com/index.php?module=statistics&vi...
KDE is just the best overall DE today.
But I'll keep trying it. Perhaps they'll get there before I die of old age.
Though now that you mention it, I recall running Tilix back when I used to run gnome. It’s been quite a few years.
PS: i am issue number 3 hueh
Back when I used alacrity I kept foot installed for emergencies where I’d broken hardware acceleration.
wait... foo in foobar isn't pronounced like foo in foot??
For me, the "foo" in "foobar" has the same vowel as "toot", which is different than "foot". Do "toot" and "foot" rhyme for you.
I speak American English, from Boston/New England but without a strong Boston accent.
Foot is fuht, like good
I’m not aware of any specific examples where <foo> and <foot> have the same vowel.
I have no idea how ncurses (I guess) interacts with the mouse through the terminal so I don't know if it relies on X11.
This is also really useful. I use it in Offpunk to display pictures when browsing the web.
Lame excuse. Try at least.
I definitely noticed it when I switched from terminator to kitty.
Now the race of which one will cat a large file the fastest is a bit pointless, but it should be fast enough not to add more than a frame of latency for regular use.
Some Electron-based things and Steam are the main holdouts I've noticed.
I suspect the Electron things at-large will be sorted out before Steam... they simply need to rebase while Valve has to modernize their libraries (ie: vgui)
I was very hopeful that the redesign would be sufficient; it was not.
Thank you for the information, though - important to be current