News for hackers. Stuff that matters.
Re:Show HN: Alacritty, a GPU-accelerated terminal emulator w... by Asooka on Friday January 06, 2017 @04:20PM (#13340303)
Hm, if we're doing GPU rendering for speed, I'd suggest uploading vector glyph data to the GPU and rasterising on the GPU in the pixel shader, rather than using FreeType. See here: http://wdobbie.com/post/gpu-text-rendering-with-vector-textu... . The WebGL Demo is really impressive - it lets you zoom in and out on a multi-page PDF at speeds I haven't seen anywhere else.
Re:Show HN: Alacritty, a GPU-accelerated terminal emulator w... by pcwalton on Friday January 06, 2017 @07:41PM (#13341651)
That will lose by a lot overall. Hit rates on the glyph cache are massive.
Re:Show HN: Alacritty, a GPU-accelerated terminal emulator w... by dddddannyyyyy on Friday January 06, 2017 @06:51PM (#13341418)
This is not fast. It uses less texture memory but it is not faster than 2 triangles per character. This is why no one really uses this technique in a production system right now.
Re:Show HN: Alacritty, a GPU-accelerated terminal emulator w... by jwilm on Friday January 06, 2017 @04:38PM (#13340446)
Thank you for the suggestion! I've had a few comments suggesting similarly. I plan to investigate this as time permits.