Comment by nicoburns
1 day ago
For anyone looking at Rust GUI: don't expect GPUI to be the fastest. From what I've heard, Iced, Slint, Dioxus Native, Freya, etc are all faster. Despite claims of being blazingly fast, GPUI isn't that optimized. Zed gets away with it because it's UI is simple.
Really? From what I've heard, Iced, Slint, Dioxus Native, Freya, etc are all slower.
If only there were some way to determine speed based on observable data. Oh well maybe some day.
Some actual numbers (vibe coded benchmark ported from the JS framework benchmark):
Dioxus above is Dioxus Native.
These are CPU-only times for the state management / style / layout / etc, but don't include rasterization (additional work in the benchmark harness required to measure GPU time sensibly), probably aren't fully apples-to-apples, and could probably do with testing some more complex layouts.
3 replies →
Why the snarky comment? We already have to data points: one person heard it was faster, another person heard it was slower. If more and more people tell what they've heard then we will know the truth. Please go read how science works!
1 reply →
If only the game I am surely going to develop some day would not waste 7% of the rendering budget on drawing the menu sliders! Must research all options now before I start. Must make an objective choice, so I need number that can be compared neutrally between frameworks. So, rendering performance it is.
This must be the lowest effort hacker news comment ever. And I've made some really low effort myself.
It is enough to counter the original claims though.
This matches my findings. Asides from some performance footgun, it all strikes me as a single purpose, low level thing with a DX only an LLM could love. I suppose many today don't need more than that but I found the other Rust GUI solutions to be maturing rapidly with better stories across the board.
The main thing GPUI has going for it is mind share and that's a great thing to have. The mind share is unfortunately highly fragmented though as the original authors are not interested in selling a GUI library. Hopefully the community efforts will come together to produce a more polished and general library. A well used library is better than a better designed one maintained by a single person.
It really annoys me the rust library is named “GPUI”. That’s the name of this method that’s been used for eternity by games.
It’d be like naming my http library HTTP.
And it’s why Dear IMGUI isn’t just named “IMGUI”.