by killerstorm · 3y ago · 0 comments
Like, why? Over 20 years of using terminal emulators not even single time I was like "Man, I wish my terminal was faster".
Is this just a fun project to do, like, "yay, I wrote a GPU-accelerated terminal emulator!"?
The litmus test I use is how smooth can the terminal emulator run `cmatrix` at fullscreen
[1] https://news.ycombinator.com/item?id=28743687 (It takes a PhD to develop that) [2] https://github.com/cmuratori/refterm [3] https://www.youtube.com/watch?v=hxM8QmyZXtg, https://www.youtube.com/watch?v=pgoetgxecw8
I have started to see "terminal" apps that won't run on a real terminal, though. Using UTF-8 regardless of your locale, using 256-color xterm escapes regardless of your TERM setting, being unreadable without 256 colors, etc, and in general not using termcap/terminfo.
even on an integrated GPU, text rendering is far faster when you use the GPU to render glyphs to a texture then display the texture instead of just displaying the glyphs individually with the CPU.
With high refresh rate displays it really helps avoid a blurry mess too
I can read the stream almost like The Matrix
GPUs aren't really meant for bit blitting sprite graphics. (Which is what a terminal really does.)
Nowadays, everything is done with the same pipeline as the 3D graphics, there's no need for two pipelines.
GPUs are meant for this. Modern ones. Your knowledge is incomplete, outdated, or both.