# WebGPU is coming in january, we made a lab to try it out

**URL:** <https://forum.babylonjs.com/t/webgpu-is-coming-in-january-we-made-a-lab-to-try-it-out/23598>\
**Category:** Questions\
**Tags:** webgpu\
**Created:** [September 6, 2021, 8:29am UTC](https://forum.babylonjs.com/t/webgpu-is-coming-in-january-we-made-a-lab-to-try-it-out/23598 "2021-09-06T08:29:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leon](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/leon/32/30387_2.png) [@Leon](https://forum.babylonjs.com/u/Leon)\
**Post date:** [September 6, 2021, 8:29am UTC](https://forum.babylonjs.com/t/webgpu-is-coming-in-january-we-made-a-lab-to-try-it-out/23598/1 "2021-09-06T08:29:23Z")

</div>

We built a lab to try out how well webGPU works.  
Chrome just announced the origin trial for it, and that it will launch in january with chrome 98  
[https://www.chromestatus.com/feature/6213121689518080](https://www.chromestatus.com/feature/6213121689518080)

So it’s not too far away before we can start supporting it 🙂

Requires Chrome Canary (95) and chrome://flags/#enable-unsafe-webgpu

[http://webgpu.labs.wec360.com/?gpu=true](http://webgpu.labs.wec360.com/?gpu=true)

I know it’s early days for yet, but I was surprised that the startup time for web gpu is so much longer.

Have you guys 'n girls got any insight in why it is taking so long?  
is it babylon that is taking time to boot up,  
or is it it’s taking time for chrome to boot up a new webGPU instance?

Have you got any other news regarding webGPU?

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [September 6, 2021, 2:55pm UTC](https://forum.babylonjs.com/t/webgpu-is-coming-in-january-we-made-a-lab-to-try-it-out/23598/2 "2021-09-06T14:55:50Z")

</div>

It is taking time to startup probably because we need to load 2Mbytes (glslang + Tint WASM) before we are able to do anything in WebGPU. We are going to try to lower the footprint of these modules to lower the starting time.

Our current status for WebGPU:

> **[WebGPU Status | Babylon.js Documentation](https://doc.babylonjs.com/advanced_topics/webGPU/webGPUStatus)**
>
> Learn the current status of the port to WebGPU as well as the next steps and caveats to be aware of.

We still have some major work to do to improve performances and have it on-par with WebGL2 (and even better, we hope). For the time being, we focused on having WebGPU feature complete compared to WebGL2.

[EDIT] We also have a demo in WebGPU:  
[https://playground.babylonjs.com/#YX6IB8#27](https://playground.babylonjs.com/#YX6IB8#27)

Some other compute shaders demo:

> **[Compute Shaders | Babylon.js Documentation](https://doc.babylonjs.com/advanced_topics/shaders/computeShader)**
>
> Learn about the compute shaders in Babylon.js.

---

<div class="post-metadata">

**Author:** ![Leon](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/leon/32/30387_2.png) [@Leon](https://forum.babylonjs.com/u/Leon)\
**Post date:** [September 12, 2021, 5:54pm UTC](https://forum.babylonjs.com/t/webgpu-is-coming-in-january-we-made-a-lab-to-try-it-out/23598/3 "2021-09-12T17:54:52Z")

</div>

Thanks for answer and the links 🙂

I’m looking forward to see what this will bring going forward

---

<div class="post-metadata">

**Author:** ![jeremy-coleman](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jeremy-coleman/32/15493_2.png) [@jeremy-coleman](https://forum.babylonjs.com/u/jeremy-coleman)\
**Post date:** [September 12, 2021, 6:35pm UTC](https://forum.babylonjs.com/t/webgpu-is-coming-in-january-we-made-a-lab-to-try-it-out/23598/4 "2021-09-12T18:35:35Z")

</div>

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/3/d/3d8059b31ac5e9d99889bb54944359b9a06bcb66.png)

I see that you’re using vite, maybe this example will help you. (Not my work, just my build)

I would be interested in helping you change the example from three to babylon, and using babylon’s ktx loader.

> **[GitHub - jeremy-coleman/vite-sw-prefetch-cacheness](https://github.com/jeremy-coleman/vite-sw-prefetch-cacheness)**
>
> Contribute to jeremy-coleman/vite-sw-prefetch-cacheness development by creating an account on GitHub.
