Open germain-gg opened 5 years ago
Thanks @gsouquet I'll take a look :)
@gsouquet have you used this attribute at all since we last spoke? The demo is impressive.
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
It looks like a new
WebGLContextAttribute
has been introduced. It is calleddesynchronized
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 ifalpha
anddesynchronized
are both set totrue
and some DOM elements are stacked on top of the canvas element. Which will be very hard to detect withinVideoContext
and quite hard to explain in an error message.More info: Low-latency rendering with the desynchronized hint