The concept of immediate mode GUIs like egui is very compelling: no duplicate da...
Wladimir Palant @WPalant@infosec.exchange
The concept of immediate mode GUIs like egui is very compelling: no duplicate data structures whatsoever, your application data is immediately translated into the user interface rendering. Makes for dead simple application code.
And then you start thinking: how does it know when to update? Oh, it doesn’t, it simply re-renders the user interface 60 times per second. That’s rather wasteful for anything but the most simple user interfaces, maybe it needs some kind of change tracking after all…
Next thought: accessibility. How does the framework know what happens when you press Tab? Actually, how can it have a concept of “input focus” at all if it doesn’t have a persistent representation of the user interface? Is the application supposed to implement input focus changes manually? And how is that supposed to work with screen readers then?
That’s the point for me where I think: well, maybe immediate mode GUIs should be better left to games. While everything else would be better off actually maintaining that duplicate widget data structure, as annoying as it might be.