# \#webworker

**URL:** https://discourse.threejs.org/tag/webworker/641.md

[Latest](https://discourse.threejs.org/latest.md) · [Categories](https://discourse.threejs.org/categories.md) · [Tags](https://discourse.threejs.org/tags.md)

---

## [Shared workers and webgpu for multiprojection](https://discourse.threejs.org/t/shared-workers-and-webgpu-for-multiprojection/49635)

<div class="topic-metadata">

**Author:** [@daniele\_ciminieri](https://discourse.threejs.org/u/daniele_ciminieri)\
**Replies:** 7\
**Last updated:** [August 31, 2025, 8:12pm UTC](https://discourse.threejs.org/t/shared-workers-and-webgpu-for-multiprojection/49635 "2025-08-31T20:12:06Z")

</div>

I would like to use three.js for an exhibition in a multi-projected room. I know that web technologies are probably not the best option and I have experience with more suitable software, but I’d really like to explore th…

---

## [Getting error while loading .ifc file](https://discourse.threejs.org/t/getting-error-while-loading-ifc-file/80849)

<div class="topic-metadata">

**Author:** [@rahul.tech](https://discourse.threejs.org/u/rahul.tech)\
**Replies:** 6\
**Last updated:** [April 16, 2025, 8:40am UTC](https://discourse.threejs.org/t/getting-error-while-loading-ifc-file/80849 "2025-04-16T08:40:35Z")

</div>

Hi, I am trying to load ‘.ifc’ model in the three.js but model is not loading. When I am checking the error on console and network then I noticed that ‘web-ifc-mt.worker.js’ is not loading in the network. and also gett…

---

## [Loading a model with GLTFLoader through Web Worker causes mesh deformation on SkinnedMesh](https://discourse.threejs.org/t/loading-a-model-with-gltfloader-through-web-worker-causes-mesh-deformation-on-skinnedmesh/80817)

<div class="topic-metadata">

**Author:** [@joveem](https://discourse.threejs.org/u/joveem)\
**Replies:** 10\
**Last updated:** [April 10, 2025, 5:52pm UTC](https://discourse.threejs.org/t/loading-a-model-with-gltfloader-through-web-worker-causes-mesh-deformation-on-skinnedmesh/80817 "2025-04-10T17:52:03Z")

</div>

My page is taking a long time to load because of the loading of the models that I do as soon as the page loads During loading in the main thread, page interactions, such as hover effects, etc., stop working One of the …

---

## [Ideas for loading glb models in an offscreen canvas](https://discourse.threejs.org/t/ideas-for-loading-glb-models-in-an-offscreen-canvas/61972)

<div class="topic-metadata">

**Author:** [@Soham\_Bhaumik](https://discourse.threejs.org/u/Soham_Bhaumik)\
**Replies:** 0\
**Last updated:** [February 27, 2024, 9:40am UTC](https://discourse.threejs.org/t/ideas-for-loading-glb-models-in-an-offscreen-canvas/61972 "2024-02-27T09:40:53Z")

</div>

I have recently moved my Three.js application from running on the main thread to an offscreen canvas. The lag seems to have improved significantly. However the issue I am facing is that with loading GLB files into the s…

---

## [Collision detection via workers?](https://discourse.threejs.org/t/collision-detection-via-workers/41205)

<div class="topic-metadata">

**Author:** [@kbk](https://discourse.threejs.org/u/kbk)\
**Replies:** 1\
**Last updated:** [August 8, 2022, 4:51pm UTC](https://discourse.threejs.org/t/collision-detection-via-workers/41205 "2022-08-08T16:51:37Z")

</div>

Hi there! So we’re implementing a game-like project where we have FP style controls, an environment and collision detection for the player(s). However I noticed that on weaker hardware or whenever there’s a processing l…

---

## [threeToCannon web worker question](https://discourse.threejs.org/t/threetocannon-web-worker-question/27787)

<div class="topic-metadata">

**Author:** [@neciszhang](https://discourse.threejs.org/u/neciszhang)\
**Replies:** 4\
**Last updated:** [March 28, 2022, 9:18pm UTC](https://discourse.threejs.org/t/threetocannon-web-worker-question/27787 "2022-03-28T21:18:43Z")

</div>

Hi, I want to use web worker,I use three-to-cannon threeToCannon(mesh, { type: ShapeType.Mesh });, it’s return shape. I send postMessage({shape:shape,position:position,quaternion:quaternion}) to worker.js. worker.js c…

---

## [Cloning scene in webworker](https://discourse.threejs.org/t/cloning-scene-in-webworker/29881)

<div class="topic-metadata">

**Author:** [@Stephane\_Ancelot](https://discourse.threejs.org/u/Stephane_Ancelot)\
**Replies:** 1\
**Last updated:** [September 13, 2021, 8:55am UTC](https://discourse.threejs.org/t/cloning-scene-in-webworker/29881 "2021-09-13T08:55:41Z")

</div>

Hi, Is there an effecient way to clone a scene in a webworker ? Or do I need to reload it in webworker ? The webworker will do collide computations of a film in advance and will then be disconnected from the scene vi…

---

## [Embed the Web Worker's external JS code to the main file -possible?](https://discourse.threejs.org/t/embed-the-web-workers-external-js-code-to-the-main-file-possible/27754)

<div class="topic-metadata">

**Author:** [@dllb](https://discourse.threejs.org/u/dllb)\
**Replies:** 4\
**Last updated:** [July 4, 2021, 12:16pm UTC](https://discourse.threejs.org/t/embed-the-web-workers-external-js-code-to-the-main-file-possible/27754 "2021-07-04T12:16:31Z")

</div>

This is the first time I lay hands on Web Workers, I have recreated the webgl worker offscreencanvas example locally to experiment with Web Workers using modules and a bundler and it works, but is it possible to eliminat…

---

## [Web-workers: bad performance after page reload](https://discourse.threejs.org/t/web-workers-bad-performance-after-page-reload/27432)

<div class="topic-metadata">

**Author:** [@Chris\_O\_Dillman](https://discourse.threejs.org/u/Chris_O_Dillman)\
**Replies:** 1\
**Last updated:** [June 22, 2021, 11:30am UTC](https://discourse.threejs.org/t/web-workers-bad-performance-after-page-reload/27432 "2021-06-22T11:30:47Z")

</div>

I am using a webworker to load an 3D object for three.js. If i disable the browsercache the webworker has great performance, if i enable the browsercache and reload the page the webworker performs really bad. Here are s…

---

## [Performance ideas (loading objects in workers, faster texture uploads, etc)](https://discourse.threejs.org/t/performance-ideas-loading-objects-in-workers-faster-texture-uploads-etc/25328)

<div class="topic-metadata">

**Author:** [@trusktr](https://discourse.threejs.org/u/trusktr)\
**Replies:** 13\
**Last updated:** [April 23, 2021, 2:54am UTC](https://discourse.threejs.org/t/performance-ideas-loading-objects-in-workers-faster-texture-uploads-etc/25328 "2021-04-23T02:54:41Z")

</div>

One idea: toTransferable API (for working across Worker thread boundaries) Problem: Getting things like ColladaLoader and GLTFLoader to function in a web Worker is not too difficult: it requires mocking (or polyfilling) …

---

## [Portal rendering with stencil buffer](https://discourse.threejs.org/t/portal-rendering-with-stencil-buffer/22425)

<div class="topic-metadata">

**Author:** [@BarthaBRW](https://discourse.threejs.org/u/BarthaBRW)\
**Replies:** 5\
**Last updated:** [January 24, 2021, 8:37pm UTC](https://discourse.threejs.org/t/portal-rendering-with-stencil-buffer/22425 "2021-01-24T20:37:19Z")

</div>

Hi everyone, I made an experiment with stencil buffer to create an infinite room with portals back in September. As I’ve just moved the private gitlab repo to github, I’d like to share it with you if there is anyone who…

---

## [Trouble reconstructing geometry from web worker](https://discourse.threejs.org/t/trouble-reconstructing-geometry-from-web-worker/21423)

<div class="topic-metadata">

**Author:** [@felixmariotto](https://discourse.threejs.org/u/felixmariotto)\
**Replies:** 2\
**Last updated:** [December 9, 2020, 7:57pm UTC](https://discourse.threejs.org/t/trouble-reconstructing-geometry-from-web-worker/21423 "2020-12-09T19:57:29Z")

</div>

Hi, I need to transfer large geometries from a web worker to the main thread. I don’t have any control of what geometries are sent to me, but it can be quite large ( up to ~3 million polygons, with normals and UVs ). I …

---

## [Webworker canvas context issue](https://discourse.threejs.org/t/webworker-canvas-context-issue/8591)

<div class="topic-metadata">

**Author:** [@danwright\_dev](https://discourse.threejs.org/u/danwright_dev)\
**Replies:** 7\
**Last updated:** [July 31, 2019, 4:38pm UTC](https://discourse.threejs.org/t/webworker-canvas-context-issue/8591 "2019-07-31T16:38:42Z")

</div>

Hello, I have been trying to recreate / understand using webworkers with three.js, and have been trying to recreate the three.js example https://threejs.org/examples/webgl\_worker\_offscreencanvas.html This is pretty muc…
