Re:Discord is ditching Electron and its new app uses less RAM
by throwaway2037 on Thursday November 05, 2026 @04:48PM
(#50384929)
From the website https://gpui.rs/, I see this description:
Can someone explain to me why a text editor needs to be GPU-accelerated? Literally, you are only blitting a few icons and painting text. What am I missing? To be clear, I am not here to doubt that the toolkit is good. Rather, I am asking why is "GPU-accelerated" important? Most people in 2026 that use an IDE are also equipped with a multi-GHz CPU has has plenty of compute to paint whatever pixels necessary at more than 60Hz refresh rate.
[ Parent
| on HN ]
Re:Discord is ditching Electron and its new app uses less RAM
by cush on Thursday November 05, 2026 @04:54PM
(#50385007)
Discord is a text editor?
Re:Discord is ditching Electron and its new app uses less RAM
by throwaway2037 on Thursday November 05, 2026 @05:29PM
(#50385405)
Fair point. It would be better to say: "Primarily text-based GUIs". I was looking for a good way to describe apps that are not primarly showing video or rendering 3D graphics.
Re:Discord is ditching Electron and its new app uses less RAM
by asimovDev on Friday November 06, 2026 @03:45AM
(#50389759)
a lot of discord is non-text. People share videos and images all the time. Everyone has profile pictures and profiles are customizeable with banners and animated backgrounds. It's not an IRC chatroom app.
Re:Discord is ditching Electron and its new app uses less RAM
by nomel on Thursday November 05, 2026 @05:01PM
(#50385101)
I think you underestimate how intense drawing text is, with all the aliasing and whatnot that goes on, spanning the full width of a 4k monitor. You can get a feel for it by using a terminal that isn't GPU accelerated, or turn off GPU acceleration in VSCode, Microsoft office, etc. Add in images and video, and you get people complaining about poor battery life.
It's either you peg a CPU while simply scrolling, or your GPU does a small amount of power efficient, buttery smooth, work.
Re:Discord is ditching Electron and its new app uses less RAM
by throwaway2037 on Thursday November 05, 2026 @05:27PM
(#50385387)
This is a very good reply! I stand corrected, and thank you to do so in a very polite and succinct manner. A better way to think about GPUs in 2026: They are used as a co-processor and are very efficient to paint pixels.
Re:Discord is ditching Electron and its new app uses less RAM
by odo1242 on Friday November 06, 2026 @01:29AM
(#50388896)
Yea, pretty much. Honestly, GPU rendering is so standard these days you'd have a pretty hard time displaying anything on a screen without using one (normally, the GPU processor or the video card it's a part of, or the integrated GPU is the one driving actual display output through HDMI/DisplayPort/motherboard connection. Which speeds things up because the CPU never has to actually move framebuffers around* (except through manipulating GPU handles) since that's what the GPU is good at.
* Also often how modern DRM works, it just prevents the OS from reading back data on the GPU buffer for that application, so the GPU (and display output port) are the only things that actually see the data.
Re:Discord is ditching Electron and its new app uses less RAM
by hburd on Thursday November 05, 2026 @05:43PM
(#50385569)
You can cache the glyphs in an atlas and avoid re-rendering each glyph every time. But this comes with its own complications and tradeoffs.
Re:Discord is ditching Electron and its new app uses less RAM
by dmix on Thursday November 05, 2026 @05:15PM
(#50385255)
I tried Zed quite a bit and I didn’t noticed much performance difference vs VSCode. Might be an overrated angle even though developers eat that stuff up in marketing.
Re:Discord is ditching Electron and its new app uses less RAM
by danpalmer on Thursday November 05, 2026 @06:47PM
(#50386242)
Zed's performance only really shows in huge windows, lots of layout things going on, big files, etc. Basic usage doesn't show it on modern high spec dev machines.
Re:Discord is ditching Electron and its new app uses less RAM
by itsTyrion on Friday November 06, 2026 @11:54AM
(#50394911)
Can't confirm. Found it to be faster basically always. Starts FAST, opening a project or switching is "blink and you miss it", so is basically every dialog and menu
Re:Discord is ditching Electron and its new app uses less RAM
by falsaberN1 on Thursday November 05, 2026 @07:41PM
(#50386688)
Oh, so the reduction in RAM usage is going to mean it's going to use my precious VRAM instead? No thanks.
Re:Discord is ditching Electron and its new app uses less RAM
by pornel on Thursday November 05, 2026 @10:07PM
(#50387674)
If you're using an OS newer than Windows XP, then the app window is going to be rendered by a GPU-based compositor anyway.
I don't know about GPUI in particular, but it's possible to make GPU-accelerated rendering use less VRAM by generating graphics with shaders on the fly instead of uploading sprites/bitmaps drawn by the CPU.
Re:Discord is ditching Electron and its new app uses less RAM
by 7bit on Friday November 06, 2026 @10:55AM
(#50393946)
Yeah, so why not use OS then for rendering and roll your own rendering pipeline?
Re:Discord is ditching Electron and its new app uses less RAM
by pornel on Friday November 06, 2026 @11:43AM
(#50394747)
because OSes have different UI toolkits with their own vendor lock-in, quirks, limitations, preferred languages, legacy baggage, and random bursts of "everything is now deprecated except the newest fad which will be deprecated next year" and "we're making everything flat and/or semitransparent!". Then most of the time the stock widgets are too basic to even support what Discord wants. This is an expensive PITA to develop and test for, and it's what lead app developers to run away to Electron.