News for hackers. Stuff that matters.
Re:Unanswered user makes question their MS thesis and answer... by swyx on Monday January 04, 2021 @04:13AM (#25629103)
it's "obvious" until you learn that most games (with way higher perf requirements than anything else) are immediate mode rendered. as with everything it depends - in this case, on how much usually changes, and how nested your data is (DOM trees are O(n^3) to do proper retained mode diffing, whereas full rerendering every time is O(n))

React's reconciliation bridges this - immediate mode programming model, retained mode commit model, with key-based bailout to solve the O(n^3) problem. There are reasonable disagreements as to how necessary this is, of course.

Re:Unanswered user makes question their MS thesis and answer... by account42 on Tuesday January 12, 2021 @04:41AM (#25744459)
> it's "obvious" until you learn that most games (with way higher perf requirements than anything else) are immediate mode rendered.

Games also tend to be the only/main thing running at a time and constantly update large parts of their display. This is not true for most applications.