Skip to the stories
AI & ML

Shopify's BFCM 2026 Skate Game: WebGPU, Toon Shading and a Sub-20MB Browser Build

  • John Johnson
  • 364 reads

Shopify's BFCM 2026 skate game runs in the browser under 20MB, using WebGPU, virtual shadow mapping and KTX2 textures. Here's the engineering behind it.

Shopify's BFCM 2026 Skate Game: WebGPU, Toon Shading and a Sub-20MB Browser Build

Most holiday dashboards stop at charts. Shopify's 2026 Black Friday and Cyber Monday live globe got a playable companion instead: a multiplayer skateboarding game set in a waterfront skate park, with the globe built into the scene. The engineering story is less about the fun and more about the constraint. The team wanted a browser build under 20MB that still ran on phones.

A robot skateboarder beside a purple globe with black-and-white patterned panels and bright arcs above a circular platform.

What the dashboard was tracking

The globe displayed sales per minute, orders per minute, items per minute, unique shoppers, and a "Best sales day" count, plus a running distance counter for total kilometers in the last minute. Shopify says 95% of Black Friday orders appeared on the globe within 2.2 seconds of the checkout sound. A separate merchant feed showed first-sale and best-sales-day milestones with location and elapsed seconds. The company reports that more than 25,500 merchants got their first sale over the BFCM weekend, and 127,600+ had their best ever sales day.

The BFCM dashboard in dark mode, with the globe, live order arcs, commerce counters, and merchant milestones.

The team clearly likes the live globe. The skate game was a way to add some personality to it.

The stack underneath

The base is three.js with r3f v10 alpha, so this is a React application at its core. It runs on the new WebGPU renderer. Physics comes from Rapier, with a capsule as the character collider. Controls are deliberately simple: WASD to move, Space to jump. Shopify says it worked closely with skate physics specialist KevKev to tune the feel.

The more unusual choice is trajectory prediction. The game projects where a jump will land, steers you toward the optimal spot, and triggers tricks automatically. That trades some player agency for flow, and it's a sensible call for a game where most players aren't skaters.

Keeping draw calls and downloads small

To hold draw calls down, the team uses an uber shader with procedural patterns: checkerboards, wood, concrete and more. Grain and splotch layers add detail on top. The patterns are authored in Blender with a custom plugin. Many surfaces have no UVs and use triplanar mapping instead, which removes a whole class of UV work from the asset pipeline.

Textures are almost nonexistent, which is the main reason the download stays small. The few that remain use KTX2 compression, which the team says avoids load-time hitches and reduces VRAM usage. The difference shows up in a side-by-side comparison: a PNG texture blocks the render thread during loading, while KTX2 doesn't.

Level art and the toon look

Brennan Letkeman handmade more than 300 versions of the level. The final scene is under 500K triangles and is mostly one large merged mesh with no LODs. That's an unusual trade-off, and it works here because the scene is bounded and the merged mesh keeps the draw count predictable.

Every asset uses a simplified toon shader. A hand-drawn feel comes from an outline pass with adjustable thickness and a subtle uneven wobble. The ink fades with distance so far-off details don't turn into visual noise. SMAA handles the jagged edges.

Virtual shadow mapping

Hard shadows sell the toon style, but the team ran into a familiar problem. Baked shadows meant large or blurry textures, and cascaded shadow maps were too expensive on mobile. The fix was Virtual Shadow Mapping. The world is split into a large virtual grid of small tiles. WebGPU compute shaders work out which tiles the camera can see, render only the newly visible ones on demand, and cache them on the GPU.

The team says this preserves a lot of detail and costs about 0.1ms on desktop and 1ms on mobile. Those are the team's own measurements, and they're the numbers that matter most for anyone trying a similar approach on lower-end hardware.

Characters, animation and small details

Marlon Epes modeled and animated the characters. To cut draw calls, the head, top, bottom and shoes merge into a single skinned mesh at runtime, which the team puts at roughly 0.15ms. Inverse kinematics add procedural leaning and crouching on top of base animations. The team says that makes a noticeable difference in how the character feels.

Vertex shaders simulate wind through clothing and leaves, and ropes sway when riders grind them. Diego Macario handled the graphics work for these effects.

Connected phones and a tablet run the skate game beside a larger monitor.

Optimizing against real devices

The team's favorite part of the process was benchmarking. Several phones stayed connected and ran benchmarks constantly. Automated agents ran on a loop to find where shaders could be trimmed or combined while keeping memory low. That's a workflow worth copying: continuous measurement on real hardware catches regressions that desktop profiling misses.

The billboards around the world all share a single shader, with no render textures. The transition back to the dashboard is a post-processing effect, with design credit to Andy Thelander.

WebGPU also enabled High Dynamic Range rendering, which gave the game a brighter sun, stronger glows, and arcs that stand out against the dashboard. HDR output depends on the display, so the effect won't look the same on every screen.

Networking and sound

Player positions go to a relay server over the WebTransport API. The team chose it because UDP-style packets suit a fast-paced game better than reliable, ordered delivery. The soundtrack was custom-made with j3n2000.

What's in the game

  • A private-room option lets players skate with friends.

  • Tricks earn points. Players work through eight quests and eight challenges, such as collecting the letters B-F-C-M or delivering a package.

  • Switching between light and dark dashboard modes sends bands of color and a checkerboard pattern outward across the globe.

The team says players from over 170 countries have joined so far.

What to watch

The interesting question isn't whether a browser game can be this small. It's whether the approach holds up outside a single seasonal project. Virtual shadow mapping and KTX2 are reusable ideas, and the per-millisecond budgets give other teams a benchmark to aim for. The open questions are browser coverage for WebGPU and WebTransport, and how the team handles the merged-mesh, no-LOD approach as scenes grow. Those are the details I'd want to see in a follow-up.

Source: John Johnson · shopify.engineering

From the same set