You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support desynchronized canvas context attribute #8406
Chrome has recently added a desynchronized canvas context attribute that disables double buffering for canvases to achieve lower latency. It will be available by default on Chrome 75 (currently on Canary), it's possible to make it available in Chrome 73 by enabling chrome://flags/#enable-experimental-web-platform-features.
We should add desynchronized to EmscriptenWebGLContextAttributes, and if true, set both desynchronized and lowLatency properties to true in the getContext call that creates the context. lowLatency is the old name for this feature, used up until Chrome 74.
If needed for debugging and writing unit tests, ctx.getContextAttributes() can be called on the created context to check if the flag is supported and was accepted.
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant.
Opened a PR for this. Quick question on testing: since browser support for desynchronized is platform-dependent, asserting the readback value could be flaky in CI. Would a test that hooks getContext to check the requested attribute be preferred instead?
I think maybe you can just can just setup the test such that is asserts on platforms we expect it work. e.g. on chrome. On other browsers we can assert the opposite?
Activity
stale commentedon Apr 11, 2020
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant.
hsdk123 commentedon Nov 23, 2022
This seems important - can we get this reopened and done?
@Matheus28 @kripken
hsdk123 commentedon Jan 19, 2025
Any updates here?
Add `desynchronized` WebGL context attribute (emscripten-core#8406)
Add `desynchronized` WebGL context attribute (emscripten-core#8406)
UnknownHacker1 commentedon Jun 23, 2026
Opened a PR for this. Quick question on testing: since browser support for
desynchronizedis platform-dependent, asserting the readback value could be flaky in CI. Would a test that hooksgetContextto check the requested attribute be preferred instead?sbc100 commentedon Jun 23, 2026
I think maybe you can just can just setup the test such that is asserts on platforms we expect it work. e.g. on chrome. On other browsers we can assert the opposite?
[html5] Add `desynchronized` WebGL context attribute (#27163)