Zed is a modern open-source code editor, built from the ground up in Rust with a GPU-accelerated renderer.

You are viewing a single thread.
View all comments
29 points

I still don’t understand why I should need GPU acceleration for my fucking TEXT EDITOR

permalink
report
reply
50 points

Probably because it’s more efficient. GPUs are designed to render things, which editors do. In a text editor, you’re effectively rendering fonts over a fixed background, which I assume is pretty efficient using the GPU.

We’re not talking about crazy 3D effects here.

Yay to battery savings!

permalink
report
parent
reply
3 points

Shouldn’t the DE/Window Manager be handling that? Seems like doing it on a window by window basis would be inefficient (and look inconsistent).

permalink
report
parent
reply
21 points

That’s a totally unrelated part of the stack. These days you just have a compositor that combines the output of applications.

The model of out of process rendering in Xorg was done pre-2000s but GPUs became the norm and don’t work well this way.

permalink
report
parent
reply
9 points

The job of the window manager is to manage windows and very little else. Font rendering is done by the widget toolkit, usually via freetype/harfbuzz.

permalink
report
parent
reply
38 points

Same reason you need it for your terminal (see kitty terminal). It’s surprisingly slow to cpu render text, gpu rendering is more power efficient and far more responsive

permalink
report
parent
reply
18 points

It was surprising how gpu accelerated rendering helped read logs better. Niche case, but better was better.

permalink
report
parent
reply
3 points

Better in what sense?

permalink
report
parent
reply
5 points

Surprisingly slow compared to GPU rendering. But… is it really “surprisingly slow”? If it was some 10mhz machine, then sure… I’d agree with you.

permalink
report
parent
reply
4 points

Look at the benchmarks on kitty https://sw.kovidgoyal.net/kitty/performance/

permalink
report
parent
reply
0 points

Same reason you need it for your terminal

So I don’t.

permalink
report
parent
reply
17 points

Sppeeed

permalink
report
parent
reply
8 points

Think about battery life too 🎉

permalink
report
parent
reply
16 points

I mean, it should be clear. Smooth and fast and snappy. If you don’t want that, use neovim like me :)

permalink
report
parent
reply
4 points

But… Neovim is smooth, fast and snappy 😭

permalink
report
parent
reply
3 points

Terminals applications are, by definition, not smooth. You can’t have smooth scrolling, or anything else really, with a text grid.

permalink
report
parent
reply
3 points

Hold down j and lmk how smooth it is 😅

permalink
report
parent
reply
5 points

Smooth scrolling? Maybe I’m wrong

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 9.1K

    Monthly active users

  • 3.2K

    Posts

  • 37K

    Comments