An unofficial, read-only Hacker News reader.

GPUI is getting its own repository (opens external site)

388 points by EvilGoose 5 days ago | github.com | 144 comments on HN

View full thread · View on Hacker News

Comment thread (4)

  1. egui is immediate mode. That rules it out for reasonable performance for complex apps.
    Replies (2)
    1. not true at all. If anything imgui’s scale better for complex apps
      Replies (1)
      1. I'm currently building a complex app on GPUI. It has both immediate and retained mode. And no, without retained mode it is impossible to obtain fast speeds. Complex gui's take time to render. You simply can't be re-rendering things all the time.

        And the minute you start going along the lines of "well why don't you cache unchanged parts of the UI as images" now you may as well go for a retained mode UI because you're reinventing the wheel.

    2. Data point from building a fairly complex egui app (Ferrite, a Markdown/JSON/YAML editor; I'm the author): immediate mode wasn't the bottleneck, the stock TextEdit was. With a custom rope buffer and virtual scrolling it handles 100 MB+ files