by GauntletWizard · 11y ago · 0 comments
It makes a lot of sense. Much goes into your text rendering beyond what was necessary in your VT100. Every screen I see is anti-aliased, horizontally and vertically aligned, with 'lines' of text that can wrap or be colored or myriad other things according to the byzantine and arcane standards of the escape codes and ones that have come after. Re-drawing even a fairly large amount of text is fairly non-trivial cpu and gpu time. I found I got way better performance and less lag from my machine if I disabled the alpha transparency on my terminal windows. Processing power is very high, but still far from unlimited.
If your terminal can't draw a screen of text at 60fps on a semi-modern computer, it has a very inefficient renderer.
I also highly recommend using urxvt[2], which not only has very fast rendering and support for a lot of modern features, it has a few settings you enable that specifically address the too-much-scrolling speed issue. From urxvt(1):
jumpScroll: boolean
[...] specify that jump scrolling should be used. When receiving
lots of lines, urxvt will only scroll once a whole screen height
of lines has been read, resulting in fewer updates while still
displaying every received line [...]
skipScroll: boolean
[...] specify that skip scrolling should be used. When receiving
lots of lines, urxvt will only scroll once in a while (around 60
times per second), resulting in far fewer updates. This can result
in urxvt not ever displaying some of the lines it receives [...]
These options can completely fix the scrolling lag problem.ls -lR / in urxvt terminal window - 16 s
vs
ls -lR / in gnome-terminal window - 3m17s
ls was run several times to make sure all information was cached. Same font, same window size, etc.
https://en.wikipedia.org/wiki/File:Codepage-437.png
The standard X terminal fonts ("fixed") are pretty good for other sizes, although I've fixed mine with a slashed zero:
...did you know that it supports rendering italics? Not particularly well, mind, especially with bitmap fonts, but it's there:
Why would I use that instead of rxvt ?
Of course if you're in difference circumstances the answer changes. But there's no particular virtue in using a worse terminal so that more of your RAM sits there with lots of 0s in it.
i=0;while true; do echo $i;i=$((i+1));done
is, if anything, slower in Terminology. Big caveat: I've just installed kernel 4.1.6 and while I've recompiled/installed the proprietary fglrx AMD driver, I'm not entirely convinced most OpenGL apps work as they should.(tyls is ls with thumbnails, and tycat is like cat except that if you try and cat a movie file to stdout it will display a video player instead of raw bytes)
Egad, that pulls in a lot of dependencies! But yeah, it's blazingly, impressively fast.
Check out st[1] sometime. It's not as fast as either terminology or rxvt, but it's fast enough.
Ever accidentally cated a 4TB disc? It's… fun.
So it's not just priority inversion that is a potential problem, but also non-obvious layers of abstraction.
But I find that rxvt is quite speedy (in both Linux and OpenBSD) not to cause any noticeable lag when using "pretty fonts". Unlike OS X, where both Terminal and iTerm are still frustratingly slow at rendering text. Sometimes I'll fire up a Linux VM just to have a fast terminal and nothing else.
(IMO, you're right about antialiasing, though)
Unfortunately that means you're stuck using a terminal with the most brain dead shortcut keys in the world. Invariably I sit down at a coworker's keyboard, hit alt-F, and instead of skipping forward a word, I open the File menu.