Simple example how to implement @pixi/webworker
using PixiJS 7+ using HTMLCanvasElement's transferControlToOffscreen.
- Render in another thread is fast and doesn't block the main thread
- Ideal for running React or another virtual DOM-based frameworks
- Only browsers that support OffscreenCanvas
- No interactivity (mouse, pointer or touch events)
Install dependencies and start. This will open in a browser.
npm install
npm start