Can someone explain to me the benefits of swiftUI/react’s approach over immediate mode graphics? The diffing algo & layer memory seem like overhead when you could render directly to the screen. (JS/DOM Can’t, so there it makes sense)
@peterhajas @kylemacomber @andy_matuschak
-
-
Yeah—to give a concrete example, consider an animated loading spinner. A retained mode system can know to redraw only the region where the spinner is animating. A fully immediate-mode system would have to redraw the whole screen, since all it knows is "something has updated".
-
Ah! This is a very clarifying example. Thank you.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.