Strike Drive is a map of a trading venue's features that you drive around. Each feature is a pad that opens a panel, there are two race tracks with shared leaderboards, and everyone in the world at the same time sees each other's cars. It went live at the end of October 2026 and is an Awwwards nominee as I write this.
That's all the product description this article needs. The rest follows the build in roughly the order the problems turned up: the setup, the ground, the car, the phone, the graphics API, and then other people. For each one I'll say what the problem looked like, what I changed, and how it turned out.
No bundler, and why that held up
The problem. Most web projects run their code through a bundler, a tool that packs hundreds of source files into a few before they reach the browser. It's one more thing to configure and one more thing that can break, and it means the code running in the browser isn't quite the code you wrote. I wanted to see how far I could get without one.
What I did. The page loads three.js, the 3D library, and my own files directly. The browser fetches each file as it's needed. Two habits kept that manageable.
The first is keeping my own copies of three.js's add-ons. They're written to be bundled, and they ask for the library by a short name the browser can't look up on its own. In my copies that name is replaced with a file path.
The second is splitting the sums from the scenery. car.js moves the car on screen, but the rules it follows live in a separate file, car-math.js, that knows nothing about 3D or the web page. There are 36 of these "math" files. Because they're plain JavaScript, I can test them from the command line without opening a browser.
How it turned out. I expected this to fall apart somewhere past twenty files. It's at 87, with more than 600 automated tests. Putting a new version live is a file copy, and when something breaks, the browser's debugger shows me exactly the code I wrote. The cost is that my code isn't shrunk before it's sent, so the download is a little bigger than it could be.
One function for the whole landscape
The problem. A driving world needs ground, and everything has to agree on where it is. The picture on screen, the car's wheels and other players' cars all need the same answer, or cars float and sink.
The usual approach is a heightmap, which is a big grid of stored heights. I didn't want to edit a grid every time I added a road.
What I did. The ground is a single function, groundHeight(x, z). You give it a position and it gives back a height. Both the visible landscape and the car ask it the same question.
Inside, it's built up in layers. It starts with a few gentle waves added together for hills. Roads flatten the hills near them. The river is a channel scooped out along a line. Bridge decks are added back on top. Even a jump ramp is one more layer.
How it turned out. Every new feature became one more layer, and nothing needed its own collision code. The day the bridges went in, my car, the leaderboard's ghost car and other players' cars could all drive over them, with no extra work.
It also caused two bugs that are worth knowing about if you try this.
The first is that the picture can be coarser than the function. The visible ground is made of triangles several metres wide, which is far too coarse to show a 7 m river channel, so the river barely showed. The river bed is now its own, finer strip of triangles.
The second is that a sudden jump in the function is a wall to the car, even if you can't see it. In one spot, two roads of different widths each tried to flatten the same patch of grass, and they disagreed by 36 cm. The grass looked smooth, but the car stopped dead there as if it had hit a kerb. Changing how the function picks which road is nearest removed the step.
The car: simple physics with a few honest rules
The problem. The car had to feel good in a browser on a phone, and be simple enough that I could reason about every bug. A full physics simulation would be neither.
What I did. The car is three numbers: a speed, a direction and a height. The surface under it sets its limits.
| Surface | Top speed | Acceleration | Steering |
|---|---|---|---|
| Dirt | 24 m/s | 16 m/s² | The same at any speed |
| Tarmac | 30 m/s | 20 m/s² | Eases off above 20 m/s |
| Water | Half | 60% | Unchanged |
Gravity is about three times stronger than real life, because with real gravity a small car's jumps feel like slow motion.
Those numbers were quick to tune. The rules around them each took more than one go, and each started with something a player could see was wrong.
Cars could climb walls. My first rule compared how much the ground rose with how far the car had moved since the last frame. A slow car only moves a few centimetres per frame, so it could inch its way up a cliff. The rule now looks a fixed half metre ahead, and a wall is a wall at any speed.
Cars skipped across the river. Hit the water flat out and you'd come out the other side barely slowed. Now extra speed drains away in water twice as fast as braking would manage, and you leave at about half speed. The river is an obstacle again.
A failed jump was rewarded. In the air the car keeps its forward speed and gravity pulls it down, so the whole flight can be worked out in advance. The track builder uses that to size a water gap so a car at 90% of top speed just clears it. But in my first version, a car that fell short was lifted onto the far ramp and given the speed boost meant for a clean landing. Falling short now counts as a crash.
Walls had to forgive a scrape. The second track has a hairpin with walls on both sides, and everyone touches them. Scraping a wall keeps 80% of your speed and turns you along it, and only a head-on hit costs you most of it. A harsher rule would have made that corner miserable.
The phone that ran at 12 frames a second
The problem. The world ran at a smooth 120 frames a second on my laptop. On my phone, a recent iPhone, it ran at 12 to 19. The car lurched and the phone got hot within seconds.
My first guess was the graphics: too many effects for a phone's chip. That guess was wrong, and measuring on the phone itself showed why. The graphics chip was fine. The time was going on JavaScript.
The cause turned out to be something called the JIT. That's the part of a browser that turns JavaScript into fast machine code while it runs. On the test page on my phone it wasn't running, and without it the same code ran several times slower. I never fully pinned down why it was off there. But some phones always run without it (Apple's Lockdown Mode turns it off for every site), so I decided the world had to run well either way.
What I did. With the JIT off, small costs repeated thousands of times became the whole problem. I switched it off on my laptop too, so I could see the same costs there. Two stood out.
Every object was being repositioned every frame. three.js works out where each object sits on every single frame, in case it moved. The world had 2,770 objects and almost none of them ever move. Now, once the world is built, each fixed object's position is worked out one last time and then left alone. Anything that really moves, like a car, opts out.
Every object was drawn separately. Each object costs one "draw call", which is one instruction sent to the graphics chip. A district built from two hundred boxes and cylinders cost two hundred of them. Now fixed objects that share the same material are fused into a single shape after loading, so two hundred instructions become a handful.
3D is heavy on phones on the graphics side too, so phones also start on a lighter quality setting, with no glow effect and no shadows. If the frame rate still drops, the world lowers its quality one more step on its own. It decides by counting slow frames, not by averaging. That way one long stutter, which every page has while loading, doesn't cost you quality for the rest of the visit.
How it turned out.
| On my phone, at the busiest spot | Frames a second |
|---|---|
| Before | 12 to 19 |
| After trimming the per-frame JavaScript and adding the phone setting | 44 to 56 |
| After freezing and fusing the fixed objects | 60 |
The scene went from 2,770 objects to about 1,550, and from over 600 draw calls at the busiest spot to about 200. Nothing looks different.
Why it's still WebGL and not WebGPU
The problem. Draw calls were still the phone's limit, and there's a newer way for browsers to talk to the graphics chip, WebGPU, that makes each one cheaper. three.js supports it, and it falls back to the older WebGL where WebGPU isn't available. It looked like a free win.
What I did. I gave it one day before committing to anything. Same world, same version of three.js, only the renderer swapped. My custom visual effects were replaced by flat colours and the glow was turned off on both sides to keep it fair. Then I drove the same route on a laptop slowed down to behave like a phone, on the high and low quality settings, and timed each frame.
| Test (laptop slowed 4×) | WebGL | WebGPU |
|---|---|---|
| JIT off, time per frame, high quality | 27 ms | 38 ms |
| JIT off, time per frame, low quality | 21 ms | 29 ms |
| JIT on, JavaScript time per frame, high quality | 4.1 ms | 5.7 ms |
| JIT on, JavaScript time per frame, low quality | 2.8 ms | 3.8 ms |
Lower is better, and a frame needs to finish in about 16 ms to hit 60 frames a second.
How it turned out. WebGPU was slower every time, by roughly 40%, and it stuttered more.
The reason is the order I did things in. WebGPU saves a little time on every draw call. But I had just cut the world to about 200 draw calls, so there wasn't much left to save, and three.js's WebGPU mode carries some extra overhead of its own. That overhead was bigger than the saving. I had already fixed the problem WebGPU would have solved.
WebGPU can do one thing WebGL can't, which is run general calculations on the graphics chip. I tried that too, with 32,768 glowing particles driven by a live data feed. It ran well. But the feed only produces 10 to 20 events a minute, so most of those particles had nothing to do, and a couple of thousand in WebGL would look the same.
This was one day's test on one version of three.js, so it isn't a verdict on WebGPU. A scene with thousands of draw calls would come out differently. I deleted the experiment and will measure again when this world needs it.
Multiplayer: making ten updates a second look smooth
The problem. Everything so far was one person in an empty world. I wanted visitors to see each other driving around, without me running or paying for a game server.
What I did. Each world is one "room" on Cloudflare's network. The room is a Durable Object, which is a small piece of server code that stays alive while people are connected and goes to sleep when they leave. Every visitor's browser keeps a connection open to it.
The messages are simple. A moving car tells the room where it is 10 times a second, and a parked car once a second. The room passes those positions on to everyone else.
Ten updates a second would look like a slideshow if you drew each car wherever its last message put it. So every browser draws other cars a fraction of a second in the past, 150 ms, and glides them between the two known positions either side of that moment. You never notice the delay, and the movement is smooth.
Sometimes an update arrives late. Then the car carries on at its last speed, turning at its last rate, for up to a quarter of a second. My first version kept the speed but froze the turn. A late car would run straight on through a bend and then snap round when the update landed. That snap was the jitter I could see with my own eyes.
Each browser also only draws the nearest cars: 24 on a computer and 12 on a phone.
Races between visitors use the same room. Up to eight cars line up and the server runs the countdown, so nobody gets a head start. Each car then times its own race and the server checks the times, which means a slow connection can't decide a close finish.
How it turned out. With a handful of visitors, it worked. The real question was what happens with a crowd, and that needed its own test.
Making room for 250 cars
Before a third track opens I wanted to know what happens when 250 people turn up at once. I built a second room that only opens with a key, pointed 250 scripted cars at it on Cloudflare, and watched from the start line.
It mostly held. What didn't is the interesting part:
- Everyone was being sent everyone. With 250 cars in the room, each visitor was taking about 91 KB a second to draw the 24 cars nearest them. Now, once a room is busy, each visitor only hears about their nearest 40. That's about 17 KB a second, and it stays flat as the room grows.
- A crowd leaving at once kicked out the people who stayed. Every departure told every other car, twice. When 250 left together, Cloudflare closed the remaining connections with "Service overloaded". Joins and leaves now go out in batches.
- The clock inside a Durable Object stops while it works.
Date.now()only moves forward between pieces of work, so under load the room's clock ran about half a second behind real time. Anything timed by it was wrong by that much. - Other cars looked jittery, and my first fix made it worse. The page was timing each car by when its position arrived, not when the car was there. I changed that, shipped it, watched a real run, and rolled it back the same afternoon. A simulation had said it was better. A recording of what Cloudflare really delivered said otherwise.
That last one changed how I test. I now record what a page in the room receives, with where every car truly was, and replay the recording through each version of the drawing code. The version that's live had to beat the old one on real recordings before it shipped.
After those fixes I ran it again, stepping from 50 cars up to 250 with everyone leaving at once at each step. Nobody was refused and nobody who stayed was disconnected. On my own phone, with 252 cars in the room, the world held 60 frames a second.
Sound with no audio files
One smaller thing, because people ask. Every sound is generated by code as you drive, and the site has no audio files. The trick that made the engine convincing was giving it four pretend gears, so the pitch climbs and then drops at each gear change, the way your ear expects. Without them, a run to top speed is one long rising whine.
Seven lessons for the next build
These are the things I'd do the same way again, on this or any project like it.
- Describe the ground with one function. If the landscape, the car and every other player all ask the same function for the height, they can never disagree. Each new feature, like a river or a bridge, is one more layer in it.
- Keep the sums apart from the graphics. Rules like "how far does a jump go" don't need a browser. In their own files they can be tested in seconds, and that's the only reason my physics has tests.
- Test once with the browser's speed-up switched off. Browsers make JavaScript fast behind the scenes, and that hides small costs that repeat thousands of times. Turning it off showed me which ones were really there.
- Count slow frames. Don't average them. One long stutter drags an average down for seconds. Counting how many frames were slow tells you whether the device is struggling or only hiccuped.
- Spend a day measuring before you spend a week switching. WebGPU looked like a sure win on paper. One day of timing showed it was 40% slower for my scene.
- Believe a recording of the real thing over a simulation. My simulation said a fix made other cars smoother. A recording from the live network showed it made them worse.
- Test a crowd leaving, not only arriving. The room coped with 250 cars joining. It failed when 250 left at once, which I'd never thought to try.
The code
It's MIT-licensed on GitHub at benryandev/copilot-check, in the ecosystem/ folder. The public copy is a snapshot from 11 November, and the newer work goes up in December. There's also a build thread in the three.js forum's Showcase category with more on the water, the glow effect and the sound.

