How We Built Shopify Party
Shopify 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.
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.
- Inside Shopify Hack Days: Building a prototype for music-playing pages
Shopify Engineering mediumAdeptA 13-person Shopify Hack Days team prototyped Shop Sounds, a toolkit for selling music on storefronts. It combined a first-class Audio media type built across Core, the Admin API, admin-web and Liquid, mirroring how 3D models already render via media_tag, with a standalone app that uses metaobjects and metafields as its entire data layer. The storefront side adds a tracklist player backed by a global audio singleton so playback continues across page navigation. It also has six GLSL fragment shaders driven by bass, mid, treble and energy uniforms with cosine-palette color schemes on Three.js with bloom, and a tour-dates block that uses Haversine distance from the visitor's geolocation. Publishing a release is about seven coordinated GraphQL mutations, and building on Shopify primitives avoided any custom backend or sync problems.
- How to host a Unity game in a Space
Hugging Face mediumAdeptA Unity game can be hosted as a playable demo on Hugging Face Spaces by building it for WebGL and pushing the output to a Static HTML Space. The steps: create a Static HTML Space, clone it with Git, switch Unity's build target to WebGL, optionally apply the Hugging Face WebGL template, set Compression Format to Disabled, build, copy the build files into the repo, track Build/* with Git LFS, and push.
- Leveraging Rust and the GPU to render user interfaces at 120 FPS
Zed hardMasterZed's GPUI framework hits 120 FPS by rendering the editor UI like a video game: rather than a general-purpose 2D vector renderer (Pathfinder proved too slow), it uses dedicated GPU shaders for a small set of primitives such as rectangles, shadows, text, icons and images, all described as data on the CPU and drawn with instanced rendering. Rounded rectangles come from a signed distance function evaluated in a Metal fragment shader. Drop shadows follow Evan Wallace's approximation, which pairs a closed-form erf-based Gaussian convolution on one axis with a few samples along the other. Text uses OS shaping via CoreText, with a per-frame cache of text-font pairs so only changed text gets reshaped.