# Continuing the discussion from \[WebAssembly SIMD improvements - free discussion\]

**URL:** <https://devforum.zoom.us/t/continuing-the-discussion-from-webassembly-simd-improvements-free-discussion/38858>\
**Category:** Web\
**Created:** [December 21, 2020, 1:25am UTC](https://devforum.zoom.us/t/continuing-the-discussion-from-webassembly-simd-improvements-free-discussion/38858 "2020-12-21T01:25:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tailinchu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tailinchu/32/12579_2.png) [@tailinchu](https://devforum.zoom.us/u/tailinchu)\
**Post date:** [December 21, 2020, 1:25am UTC](https://devforum.zoom.us/t/continuing-the-discussion-from-webassembly-simd-improvements-free-discussion/38858/1 "2020-12-21T01:25:55Z")

</div>

Continuing the discussion from [WebAssembly SIMD improvements - free discussion](https://devforum.zoom.us/t/webassembly-simd-improvements-free-discussion/29449)

The original thread is closed, so here is a new one @nvivot

In chrome 86 or later, we should have the following experimental features ([https://chromium.googlesource.com/chromium/src/+/HEAD/third\_party/blink/renderer/platform/runtime\_enabled\_features.json5](https://chromium.googlesource.com/chromium/src/+/HEAD/third_party/blink/renderer/platform/runtime_enabled_features.json5)) to make websdk more performant:

1. WebAssemblySimd
2. WebAssemblyThreads
3. WebCodecs

But in websdk 1.8.3, zoom still only enables 1 cpu core to decode video. As a result, it is dropping frames if the other side turns on screensharing or having 720p+ webcam.

websdk 1.9.0 should/could fix this but it could still be months away from being released.  
This thread is finding ways to work around before websdk is “fast enough” some time next year. The solution could be some experimental chrome flags, or custom zoom av lib that can be set in setZoomJSLib (if zoom documents and allows drop-in replacement of better av simd encoding/decoding lib),etc.

Related posts:

1. [Meeting bad audio and bad video](https://devforum.zoom.us/t/meeting-bad-audio-and-bad-video/16359)
2. [How to set receiving video quality to be lower like 360p](https://devforum.zoom.us/t/how-to-set-receiving-video-quality-to-be-lower-like-360p/38681)
3. [Web SDK with low performance (Audio and Video)](https://devforum.zoom.us/t/web-sdk-with-low-performance-audio-and-video/14076)

---

<div class="post-metadata">

**Author:** ![nvivot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nvivot/32/4489_2.png) [@nvivot](https://devforum.zoom.us/u/nvivot)\
**Post date:** [December 21, 2020, 3:01am UTC](https://devforum.zoom.us/t/continuing-the-discussion-from-webassembly-simd-improvements-free-discussion/38858/2 "2020-12-21T03:01:50Z")

</div>

Thanks for creating an extension to the first thread.

It’s been a while now that i’ve run some tests on SIMD feature, but here is my understanding about the options we have as customers of the Zoom Web SDK.

**WebAssemblySimd** : this is the main feature and we can choose to activate it or not. I did it to run my tests and as mentioned on the other thread, i did not notice any significant improvement.  
At that time, i was using the 1.8.0, so i’m going to redo some testing based on the 1.8.3.

**WebAssemblyThreads** : This is an option that would work if and only if the zoom WASM files are using multiple threading.  
According to the information provided by Zoom on the previous thread, it does not seems that Zoom WASM programs are using it. They only use 1 thread per video and audio function (1 for encoding, 1 for decoding, this for both video & audio components)  
So unless Zoom work on that part for a future version, there is nothing we can to by ourselves here to try to improve performances.

**WebCodecs** :  
Here again, i’m afraid that the Zoom Web SDK is working with their own JS (or wasm) codecs. Not sure whether we can try different codecs by updating the path from the initialization code. I did not try yet and did not look into zoom documentation about this point. It would be nice to have Zoom highlight on that part as well.

---

<div class="post-metadata">

**Author:** ![tailinchu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tailinchu/32/12579_2.png) [@tailinchu](https://devforum.zoom.us/u/tailinchu)\
**Post date:** [December 21, 2020, 8:30am UTC](https://devforum.zoom.us/t/continuing-the-discussion-from-webassembly-simd-improvements-free-discussion/38858/3 "2020-12-21T08:30:00Z")

</div>

It seems like 1.8.5 will be released tomorrow. Going to test that too. @nvivot please post some result. (I already tested 1.8.3 but I hope to get second pair of eyes on the same issue.)

For wasm threads, I also don’t see multi-core cpu helps. Only 1 core is active in video decoding, which is the most compute-intensive task. I would like to throw more cpu cores at this problem if possible. Zoom could open source the code that gets compiled to wasm.

For webcodecs, I am able to get video/audio data from websocket. But there is no way to modify as mitm.

I hope zoom can document some ways to swap in video/audio decoder. There are more efficient simd-ready h264 wasm decoders on github.

---

<div class="post-metadata">

**Author:** ![nvivot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nvivot/32/4489_2.png) [@nvivot](https://devforum.zoom.us/u/nvivot)\
**Post date:** [December 21, 2020, 8:42am UTC](https://devforum.zoom.us/t/continuing-the-discussion-from-webassembly-simd-improvements-free-discussion/38858/4 "2020-12-21T08:42:18Z")

</div>

@tommy

Could you please have a look at our comments regarding threads & web codecs and share our though with zoom devs ?

---

<div class="post-metadata">

**Author:** ![tailinchu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tailinchu/32/12579_2.png) [@tailinchu](https://devforum.zoom.us/u/tailinchu)\
**Post date:** [December 22, 2020, 5:18pm UTC](https://devforum.zoom.us/t/continuing-the-discussion-from-webassembly-simd-improvements-free-discussion/38858/5 "2020-12-22T17:18:17Z")

</div>

@tommy is there any change in simd support in 1.8.5? Just tested it, and the performance is essentially the same as 1.8.3.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 23, 2020, 7:22pm UTC](https://devforum.zoom.us/t/continuing-the-discussion-from-webassembly-simd-improvements-free-discussion/38858/6 "2020-12-23T19:22:33Z")

</div>

Hey @tailinchu, @nvivot,

Thank you for continuing this discussion and sharing your thoughts and ideas! I will gladly pass this to our Web SDK engineering team! 🙂

As for version 1.8.5 there were no changes related to simd support. [You can enable WebAssemblySimd however.](https://medium.com/zoom-developer-blog/new-webinar-features-for-websdk-84be8dd3b685) Jump to " **SIMD Support**".

-Tommy

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [January 23, 2021, 5:22am UTC](https://devforum.zoom.us/t/continuing-the-discussion-from-webassembly-simd-improvements-free-discussion/38858/7 "2021-01-23T05:22:33Z")

</div>

Closed on January 23, 2021, 5:22am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
