Unofficial Hacker News companion — get notified on comment replies, and more.

Prospero: Bloat-free, native AI coding harness with ImGui (opens external site)

89 points by ingve 4 days ago | github.com | 39 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (2)

  1. Of course you don't; you only need to redraw things that have changed, when they change.

    Back when computers didn't have so much spare capacity that's how most UIs worked. That's why the Win32 and X11 systems (and probably others but those are the ones I'm familiar with) give your application information about what specific rectangle of the window needs to be repainted when they ask the application to repaint something.

    Replies (1)
    1. That's still redrawing everything, just with caching.

      With the current rise in compute capacity, caching is not automatically faster than recomputation.