3 ms·
I don't understand. Why would you need to render a user interface constantly at 120 fps, instead of just updating it when something changes? Laptop batteries la
by nottorp 4y ago
I don't understand. Why would you need to render a user interface constantly at 120 fps, instead of just updating it when something changes? Laptop batteries last too long these days? Electricity too cheap?
- sdflhasjd 4y ago"Because it looks good" is probably the most popular reason.
- nottorp 4y agoBut if nothing changes it looks as good at zero fps :) Edit: Yay, it's a text editor. What happened to only redrawing the line that's being edited and the status indicators?
- as-cii 4y agoHey nottorp. Antonio here, author of the post. Zed and GPUI use energy very judiciously and only perform updates when needed. The idea is that we can render the whole application within ~8ms, and that shows everywhere: from typing a letter to scrolling up and down in a buffer. However, if the editor is sitting there idle, we won't waste precious CPU cycles. Thanks for the feedback!
- nottorp 4y agoYeah, might want to edit the title a bit. Or not, considering these concepts are getting lost. I mean, the win16 api from ages ago had support for invalidating specific screen regions etc. It probably got lost somewhere in the transition to javascript...
- rubymamis 4y agoWill you allow developers access to your GUI framework? What about open-sourcing it?
- flohofwoe 4y agoIt's not about rendering static screens at 120Hz, but rendering anything that's animated at a smooth 120Hz.
- deleted 4y ago[deleted]