Computer Graphics Potpourri

Dated Jan 3, 2021; last modified on Thu, 02 Sep 2021

Retained Mode vs. Immediate Mode

In retained mode, the graphics library exposes an API to the application for building/updating a scene. However, the graphics library is in charge of issuing drawing commands. In contrast, an immediate-mode API allows the application to issue the drawing commands. Retained-mode APIs abstract away initialization, state maintenance and cleanup, but uses more memory. Immediate-mode APIs allow for more targeted optimizations.

https://reactjs.org/ is one of the more popular retained-mode web APIs.

  1. Retained Mode Versus Immediate Mode - Win32 apps | Microsoft Docs. Microsoft. https://docs.microsoft.com/en-us/windows/win32/learnwin32/retained-mode-versus-immediate-mode .