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

  • @aramus
    link
    281 month ago

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

    • @[email protected]
      link
      fedilink
      501 month ago

      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!

      • @[email protected]
        link
        fedilink
        31 month ago

        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).

        • @AProfessional
          link
          English
          211 month ago

          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.

        • @[email protected]
          link
          fedilink
          English
          91 month ago

          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.

    • @[email protected]
      link
      fedilink
      371 month ago

      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

    • @[email protected]
      link
      fedilink
      161 month ago

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