VideoContext icon indicating copy to clipboard operation
VideoContext copied to clipboard

Use canvas desynchronized rendering

Open germain-gg opened this issue 6 years ago • 3 comments

It looks like a new WebGLContextAttribute has been introduced. It is called desynchronized and it will optimise in some cases the rendering by bypassing some steps in the redering pipeline.

Interestingly this can create some issues with the alpha option, which is something we should take in consideration when looking at #153 . It will only be a problem if alpha and desynchronized are both set to true and some DOM elements are stacked on top of the canvas element. Which will be very hard to detect within VideoContext and quite hard to explain in an error message.

More info: Low-latency rendering with the desynchronized hint

germain-gg avatar May 03 '19 08:05 germain-gg

Thanks @gsouquet I'll take a look :)

PTaylour avatar May 07 '19 16:05 PTaylour

@gsouquet have you used this attribute at all since we last spoke? The demo is impressive.

PTaylour avatar Jun 25 '19 11:06 PTaylour

We are actually using that in prod for one of our video. Will try to create a PR for VideoContext. The good news is that we already use preserveDrawingBuffer

germain-gg avatar Nov 06 '19 13:11 germain-gg