Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Immediate mode UIs don't need to be redrawn on every mouse move: https://blickeditor.com/blog/caching-an-immediate-mode-ui?la...
 help



When using Wayland, you have 2 buffers that you render your window into, and they already contain previous window content so why make a cache? Why not simply skip the parts that did not change?

The article you are referring to is interesting, but it looks like adding a hack instead of rewriting the code. They also did not make measurements for an older system without a working GPU.

> If rebuilding the UI takes a millisecond at most, how much should we care?

Because user runs multiple programs, and rendering UI doesn't always take milliseconds, and battery capacity is not infinite. Also programs using GPU typically use lot of extra memory, require slow shader compilation, GPUs often have buggy drivers.

Also it would be better if every program used same UI widgets (for example, GTK) rather than have their own set of widgets with missing features like IME support, different hot keys etc.

Also, what is the advantage of immediate mode UI over proper GUI reactive framework with convenient declarative syntax? I see no advantages.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: