The getContext() method now supports a desynchronized option, which provides a low-latency alternative to the now deprecated NaCl/PPAPI solution which used native OpenGL rendering. The new solution uses either 2d or webgl rendering. For example: `let context_type = '2d’; // Or 'webgl' canvas.getContext(context_type, {desynchronized: true});`
Demos
Documentation
Specification
Status in Chromium
Enabled by default (tracking bug) in:
- Chrome for desktop release 75
- Chrome for Android release 75
- Android WebView release 75
Consensus & Standardization
After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.
Owners
Search tags
low latency, canvas, single buffering, webgl, stylus, desynchronized,Last updated on 2020-11-19
Comments
This feature is a continuation of https://www.chromestatus.com/feature/5648950090530816; that had a strong OffscreenCanvas flavour (see e.g. https://github.com/whatwg/html/issues/2659 and the associated bug http://crbug.com/646022). This particular feature applies to non-offscreen canvases. During Spec discussion, |lowLatency| changed name to |desynchronized|, hence some old stale references.