Having never thought my current terminal emulator was slow I was surprised to immediately see a difference with Alacritty!
That being said, every time I install a package useing apt-get (Xubuntu) Alacritty crashes with the following:
thread 'pty reader' panicked at 'index out of bounds: the len is 24 but the index is 18446744073709551615', /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libcollections/vec.rs:1371 I guess we're not quite at 1.0 yet but looking good otherwise!
Awesome! This is exactly what I've been hoping for. The state of terminal emulators on macOS is particularly bad, at least when it comes to speed. Both the built-in term and iTerm have a lot of features, but really start to lag on big screens with a lot of text. I used to run urvxt under XQuartz for this reason, but there's scaling problems with retina screens these days.
Nice work. Hopefully this can fill a particular void for folks that want no-frills fast terminal emulation.
I can't remember the last time I thought that my terminal was too slow, except maybe when I tried that Electron-based program a while back (Hyper, I think it was). My priorities are more like the following:
1. Stability. I crashed Alacritty thirty seconds after opening it; possibly related to issue #12. 2. Emulation correctness. In Terminal.app, the cursor often gets out of sync when I "turn the corner" (i.e., backspace across a line boundary). 3. Font rendering. Text in some terminals just looks ugly. 4. Features. Alacritty doesn't seem to show the number of rows and columns when I resize. Scrollback! This looks like a really interesting project, but it seems really strange to make performance such a high priority. I tried the find /usr test, and it seemed equally fast in Terminal.app and Alacritty.
so this uses GPU-accelerated rendering with OpenGL. TBH I have never used OpenGL and when I read "GPU-accelerated XYZ" this still sounds like magic to me because I've know idea how this works. Could you point me to some resources where I can read up on this stuff? if this helps you: I am not a newbie, I already know C, C++ and Rust, but I haven't done any graphics programming at all yet. For example I only have a very rough idea what shaders do.
I learned this stuff a long while ago, but I found a promising textbook for you to review [0]
tldr; the "easy 80%" of the effort in GPU rendering, specifically, is reformatting graphics data in forms that the GPU prefers. (The "hard 20%" is dealing with confusing APIs, broken implementations, etc.) Graphics techniques themselves may apply various mathematics(geometry, trigonometry, a little bit of linear algebra, DSP), either on the CPU or GPU. To render things you make decisions about the processing and output format and write data and algorithms accordingly. [0] http://math.hws.edu/graphicsbook/
Comments (476) 68 threads
Earlier commentsThat being said, every time I install a package useing apt-get (Xubuntu) Alacritty crashes with the following: thread 'pty reader' panicked at 'index out of bounds: the len is 24 but the index is 18446744073709551615', /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libcollections/vec.rs:1371
I guess we're not quite at 1.0 yet but looking good otherwise!
Nice work. Hopefully this can fill a particular void for folks that want no-frills fast terminal emulation.
1. Stability. I crashed Alacritty thirty seconds after opening it; possibly related to issue #12.
2. Emulation correctness. In Terminal.app, the cursor often gets out of sync when I "turn the corner" (i.e., backspace across a line boundary).
3. Font rendering. Text in some terminals just looks ugly.
4. Features. Alacritty doesn't seem to show the number of rows and columns when I resize. Scrollback!
This looks like a really interesting project, but it seems really strange to make performance such a high priority. I tried the find /usr test, and it seemed equally fast in Terminal.app and Alacritty.
tldr; the "easy 80%" of the effort in GPU rendering, specifically, is reformatting graphics data in forms that the GPU prefers. (The "hard 20%" is dealing with confusing APIs, broken implementations, etc.) Graphics techniques themselves may apply various mathematics(geometry, trigonometry, a little bit of linear algebra, DSP), either on the CPU or GPU. To render things you make decisions about the processing and output format and write data and algorithms accordingly.
[0] http://math.hws.edu/graphicsbook/
All comments shown.
Couldn't load more comments. Check your connection and try again.