3 ms·
Which part of a web page is immediate mode, exactly? Maybe <canvas> if you clear it on every frame.
by cluckindan 7mo ago
Which part of a web page is immediate mode, exactly?
Maybe <canvas> if you clear it on every frame.
- bryanrasmussen 7mo agoI was just responding to the usage that the parent commenter had which was >As I understand it, React was an attempt to shoehorn "immediate-mode UI"[1] on top of retained-mode UI which I interpreted as the only possible meaning, in relation to React, being UI components that must rerender as close to immediately as possible vs. UI components that do not need immediate rerendering when the underlying data has changed. I realize that is not a particularly correct use of the phrases, but then that is what happens when you use a concept from one type of development metaphorically in another type of development, memetic slippage as it were.
- Izkata 7mo agoWikipedia: > In immediate mode, the scene (complete object model of the rendering primitives) is retained in the memory space of the client, instead of the graphics library. This implies that in an immediate mode application, the lists of graphical objects to be rendered are kept by the client and are not saved by the graphics library API. The application must re-issue all drawing commands required to describe the entire scene each time a new frame is required, regardless of actual changes. React is simulating immediate mode by having the developer describe the full rendered result from the current data state. The developer / app code doesn't need to keep track of what changes need to be done to get the browser from its current state to the desired state, React does that for you. Retained mode is where the developer / app does have to concern itself with the current browser state and issue the desired updates themselves, like how everything was done in the jquery era and earlier.