Inside Shopify’s 2026 BFCM skate game
Shopify's BFCM 2026 live globe was embedded in a multiplayer browser skateboarding game that runs at 4K 120fps in under 20 MB, built on three.js, React Three Fiber v10 alpha and the WebGPU renderer, with Rapier physics using a capsule collider. Draw calls stay low through an uber shader with procedural patterns and triplanar mapping, few textures (KTX2-compressed to avoid render-thread hitches), a mostly single merged level mesh under 500K triangles, and character parts merged into one skinned mesh on the fly. Hard toon shadows come from virtual shadow mapping, where WebGPU compute shaders render only newly visible tiles and cache them, costing 0.1 ms on desktop and 1 ms on mobile. Multiplayer positions travel over WebTransport UDP to a relay server, and agents looped against benchmarked phones to trim shaders and memory.
Related posts
- Behind the build: 2025's BFCM globe in a pinball machine 🌎🕹️
Shopify Engineering mediumAdeptShopify's 2025 BFCM live globe was embedded in a browser pinball game built with three.js and react-three-fiber, streaming real merchant orders via server-sent events and reacting to sales milestones and first sales. The team switched from Rapier 3D to Rapier 2D physics for mobile performance, faking ramps with sensors that toggle collider sets, and cut the physics step from 2ms to about 0.2ms even with six balls and continuous collision detection. Lighting was baked in Blender with MeshBasicMaterials. The 85 dynamic table lights are rendered via an emissive texture plus a mask texture encoding light IDs in the red channel. A shader plays 128x32 dot-matrix sprite sheets, and AR support took about 100 lines with @react-three/xr.
- How We Built the BFCM 2023 Globe
Shopify Engineering mediumAdeptShopify's BFCM 2023 live-orders globe was built with Three.js and React-three-fiber, and most of its effects are drawn in single instanced draw calls. Order arcs are cubic Bézier curves evaluated in the vertex shader from per-instance attributes stored in an interleaved buffer. They are billboarded using the cross product of the curve tangent and the camera direction, and dissolve via UV-driven noise. Instancing let the team render tens of thousands of arcs, and up to a million on an M1 laptop, where earlier per-mesh arcs struggled past 1000 on mobile. The same approach covers fireworks, city dots and orbiting airplanes, along with fixes for a camera flip caused by the lookAt up vector, Hermite-spline 'loopy arcs', and working around WebGL's 255-byte attribute stride limit.
- How We Built Shopify Party
Shopify Engineering mediumAdeptShopify Party is a browser-based multiplayer 3D hangout space built in Unity WebGL with Normcore for networking. Normcore uses client-owned state rather than an authoritative server. Uncontrolled objects such as moving platforms stay in sync because their motion is a deterministic function of the shared room time, not a Unity animation. Character outfits are separate textures combined at runtime in a single shader, which lets employees design clothing without 3D skills. Optimizations for 60FPS on hardware from M1 Pros to Pixelbooks include Simple Lit materials instead of PBR, GPU instancing to cut draw calls, and a render scale capped to a target width.
- The Future of React Native Graphics: WebGPU, Skia, and Beyond
Shopify Engineering easyNoviceReact Native WebGPU, built on Google's Dawn, lets React Native apps run Three.js, React Three Fiber, TSL shaders, ComputeToys compute shaders and TensorFlow.js on Metal (iOS) and Vulkan (Android) with no changes, which collapses the separate OpenGL and Metal backends into one. Lessons from that work fed back into React Native Skia. Moving from a mutable C++ scene graph (SkiaDOM) to an immutable, Fabric-reconciler display list made animation up to 50% faster on iOS and nearly 200% faster on Android, while fixing 98% of reported Android crashes. Skia also gained macOS, tvOS and headless Node.js targets, and the experimental Skia Graphite backend previews automatic threading and two-way 2D/3D texture composition.
- How did we build 3D animations in mobile apps?
Wise Engineering mediumAdeptWise renders its brand 3D illustrations interactively in its iOS and Android apps by building three.js/WebGL scenes as standalone local HTML files shown in web views, which it chose over native or Filament for cross-platform reuse and documentation, and which hit 60–120 FPS. An automated pipeline cut the assets from 324 MB to 3.7 MB in three steps: deduplicating textures shared across glTF files (to 98.4 MB), compressing textures (to 5.2 MB) and Draco geometry compression (to 3.7 MB). Draco decompression made scenes slow to load, so the apps pre-load scenes and keep them in memory with rendering paused. Native gyroscope data is passed into the HTML to drive scene rotation.