| ▲ | slopinthebag a day ago | ||||||||||||||||||||||
you can cache layouts with immediate mode libraries. in terms of scaling, it really depends - if you have many components updating at once, the benefits of retained mode libraries are diminished if not reversed. when people create demos of 10,000 list elements and updating a single one, it's basically designed as a best case scenario for retained mode. try updating the entire list... but i can make strong claims about the benefits of not needing to duplicate your state inside of your ui framework. that alone removes an entire category of work, and i would argue scales better from a conceptual/dev standpoint. | |||||||||||||||||||||||
| ▲ | ben-schaaf a day ago | parent [-] | ||||||||||||||||||||||
> you can cache layouts with immediate mode libraries There's all sorts of caching you can do with immediate mode; like you said, caching the layout in a large list. The end result is the same as retained mode, with all the same complexities. Might as well skip reinventing the thing. > try updating the entire list... If you're comparing like-for-like, whether you're doing layout for the entire UI in immediate mode or retained mode shouldn't make a big difference. You're doing the same calculations after all. > but i can make strong claims about the benefits of not needing to duplicate your state inside of your ui framework I've found it's often not necessary to duplicate state in the UI framework; you can frequently make UI controls the owner of the state. | |||||||||||||||||||||||
| |||||||||||||||||||||||