The collective groan whenever a new desktop app turns out to be “just another Electron wrapper” has finally reached a breaking point. We have all been there. You open Discord, Slack, and VS Code, and suddenly your 16GB of RAM is screaming for mercy. It seems Discord has finally decided to do something radical about it. They are rebuilding the whole desktop experience in Rust, swapping out the heavy Electron foundation for a framework called GPUi.
I have spent some time looking into the early builds and the tech behind this move, and the difference is visible even to the naked eye. On the left, you have the current app, sluggish and heavy. On the right, the Rust version. It feels instant. Not “fast for a web app” fast, but actually, physically instant.
The Architect Who Regretted His Creation
There is a bit of poetic justice here. GPUi was built by the team behind the Zed code editor. The founder of Zed, Nathan Sobo, was actually one of the original creators of Electron back at GitHub. It is almost as if the person who gave us the tool that bloated every app on our taskbar is now trying to provide the antidote.
Unlike Tauri, which is often called the “Rust version of Electron,” GPUi takes a much more aggressive path. Tauri still relies on a browser engine, it just borrows the one already installed on your OS. GPUi, on the other hand, throws the entire concept of a browser out the window. There is no HTML. There is no CSS. There is no DOM tree to struggle with.
Rendering an App Like a Video Game
If you have ever played a modern video game, you know that the graphics card (GPU) is doing the heavy lifting, calculating every pixel at 60 or 120 frames per second. GPUi treats a chat app exactly like a game engine would.
Instead of telling a browser to “render a div with a blue background and rounded corners,” GPUi uses shaders. These are tiny programs that run directly on your graphics card. Every rectangle, shadow, and icon is calculated through math. Even the text rendering is handled via a “glyph atlas,” where letters are pre-drawn and then stamped onto the screen with extreme efficiency.
Writing UI this way is traditionally a nightmare. If you have ever touched WebGL or raw Metal/Direct3D code, you know it is verbose and painful. GPUi tries to fix this by using a syntax that feels a lot like Tailwind CSS or SwiftUI. You chain styles together in Rust, and the framework handles the “game engine” logic under the hood.
The Benchmarks: Is It Actually Better?
I decided to put this to the test by building a basic chat clone in Electron, Tauri, and GPUi to see if the hype matches the reality. The results were telling, but maybe not for the reasons you would expect.
When sitting idle, the memory usage was night and day. The GPUi version sat at a lean 88MB. Tauri took about 142MB, and Electron was predictably at the top with 150MB. The binary size difference was even more insulting: 4.6MB for GPUi versus 259MB for Electron.
However, it is not a pure win. During heavy scrolling and message spamming, I noticed that GPUi actually used almost twice as much CPU as Tauri. Because it is rebuilding the frame and pushing everything to the GPU constantly, it can be quite hungry for processing power when things are moving.
The Catch: Complexity vs. Performance
Here is where I get a bit skeptical. We love to hate on Electron, but Electron is stable. It has ten years of documentation, a massive ecosystem, and you can find a developer to work on it in five minutes.
GPUi is the “wild west.” The documentation is thin, the API changes constantly, and you have to write your entire UI in Rust. While the performance gains are real, you are adding a massive layer of complexity to your development cycle. There is a reason Zed’s UI is relatively simple compared to something like a fully-featured Discord client or a heavy enterprise tool.
Discord switching to this is a massive bet. If they pull it off, it sets a new standard for what a “premium” desktop app should feel like. But for the average developer or a small startup, I am not sure the trade-off is worth it yet. You are trading your developers’ sanity and time for a few hundred megabytes of RAM. In the world of business, that is a hard sell.
If you are a performance nerd or someone who truly hates the “web-ification” of the desktop, GPUi is the most exciting thing to happen in years. But if you just want to ship a product that works without fighting the compiler for three days just to center a div, Electron is probably not going anywhere soon.
