DisplayList2D, display lists for 2D canvas contexts
- Category
- Graphics
- Type
- New or changed feature
- Status
- No active development (Chrome No active development)
- Intent stage
- None
Summary
This API allows 2D canvas command streams to be recorded, played back, serialized and deserialized. The primary goal of this API is to increase app performance by minimizing the amount of script and API calls that need to be executed in animation updates. A secondary purpose is to improve development workflows by handling command streams as assets that are easy to inspect, edit and debug.
Motivation
CPU time on the main thread is often the main bottleneck in graphics-intensive web apps. This new API aims to greatly reduce script and API overhead by allowing rendering command streams to be batch into "display lists". Browser implementation may even cache display on a separate thread, thus completely displacing the computational burden of display list playback off the main thread.
Standards & signals
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=displaylist2d-display-lists-for-2d-canvas-contexts
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+DisplayList2D%2C%20display%20lists%20for%202D%20canvas%20contexts
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=DisplayList2D%2C%20display%20lists%20for%202D%20canvas%20contexts
- Baseline status: https://webstatus.dev/?q=DisplayList2D%2C%20display%20lists%20for%202D%20canvas%20contexts