Case study: Moving a Three.js-based WebXR app off-main-thread
Keeping the frame rate stable is vital for virtual reality applications. Off-main-thread architecture can help ensure that the frames keep shipping.
Streams for reactive programming
Can you use WHATWG Streams for reactive programming? It seems so. But is it a good idea?
React + Redux + Comlink = Off-main-thread
Redux is state management. State management belongs off the main thread.
Is postMessage slow?
No, not really. (It depends.)
When should you be using Web Workers?
You should always use Web Workers. And in our current landscape of frameworks it’s virtually impossible.
- … all posts
WhatWG Stream Visualizer
A visual “interface” for WhatWG streams.
Renders images as a spiral with varying wobblyness (technical term), so it looks a bit like a vinyl record.
Discrete Cosine Transform (DCT)
A reactive UI that creates the Discrete Cosine Transform of a given image, removes some data and then applies the reverese DCT to show the visual artifacts.
Workerized Mandelbrot with SABs
This experiment is a real-time, interactive Mandelbrot renderer using SharedArrayBuffers, Atomics and Web Workers.
- … all experiments