News for hackers. Stuff that matters.
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.