← Back to release summary

Low latency canvas contexts with desynchronized

Category
Graphics
Type
New or changed feature
Status
Enabled by default (Chrome 75)
Intent stage
None

Summary

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});`

Standards & signals

Docs: https://github.com/whatwg/html/issues/4087 https://tinyurl.com/lowlatency-canvas-on-chromeos

Samples: https://codepen.io/miguelao/full/WKZaqd https://codepen.io/miguelao/full/ZjJNNw https://codepen.io/miguelao/full/mLLKLg

View on chromestatus.com