jnqtech studio emblem
jnqtech

I Banned Three.js, Built Custom WebGPU, Tested Unreal and Unity, Then Came Back to Three.js

My first architecture doc banned Three.js on day one. Two months later — after evaluating Unreal and Unity against my zero-download browser goal, stepping away from license uncertainty, and running a live phone bake-off — Three.js won.

The Pall2026-12-02·6 min read·Engines · Three.js · WebGPU · Unity
I Banned Three.js, Built Custom WebGPU, Tested Unreal and Unity, Then Came Back to Three.js
In This 7-Part Series: Building The Pall▾
  1. 01I Never Meant to Build an MMORPG: How an AI-Org Experiment Escalated Into The Pall6m
  2. 02One Prompt, 18 AI Employees, 76 Ticks — And Why the Charging Wolf Looked Like a Tree5m
  3. 03I Banned Three.js, Built Custom WebGPU, Tested Unreal and Unity, Then Came Back to Three.jsREADING
  4. 04The 6-Hour Crash Test That Failed on Interval #4,277 — And the 10% Slow Linux Clock7m
  5. 05583 Tracker Commits, Zero Features, and 192 GiB of Evidence: Cutting 85% of My Own AI Bureaucracy13m
  6. 06My Validator Rejected 21,500 Lines of AI Terrain (6,096 Floating Road Vertices) — Building the Valley in Code & Headless Blender6m
  7. 07From 5 Struggling Bots to 1,500+ MMORPG Players on One €10.49 ARM VPS15m

On August 8, Decision #1 in my tech stack document was blunt: "Not Three.js." The reasoning sounded smart on paper — Three.js abstractions cost real frames on mobile, so I had the AI write a zero-dependency WebGPU/WebGL2 renderer from scratch.

Fast forward two months, and the game runs on Three.js. Getting from "I banned it" back to "it won on real hardware" took 45 days of detours that turned into a practical lesson in picking tools for the exact constraint you actually care about.

Forty-five days of engine pivots — and the 60% character bundle compression that finally sealed the Three.js migration.
Forty-five days of engine pivots — and the 60% character bundle compression that finally sealed the Three.js migration.

Testing Unreal Engine 5 Against a Zero-Download Goal

Right after sending out the August 20 Friends Build, doubt crept in. The custom WebGPU renderer ran fast, sure, but adding shadows, rigged characters, decent lighting, and a big world meant building every graphics feature by hand. I looked at the screen and thought: why am I not using a proven AAA engine?

At 16:48 on August 20, I had the AI draft a 75 KB charter (UE5-GENESIS.MD) to explore rebuilding the game in Unreal Engine 5.8 with C++ and the Gameplay Ability System. Unreal is an extraordinary, mature engine — for native desktop or console games, it gives you rendering and gameplay systems out of the box that a solo dev could spend years trying to match.

By 19:41 — two hours and fifty-three minutes later — I realized the mismatch wasn't with Unreal, it was with my own core premise. The whole point of The Pall was zero downloads: tap a link on a phone, play immediately in a browser. Getting a heavyweight native engine like UE5 to deliver a fast, zero-install mobile browser game wasn't something I knew how to pull off — or even knew was realistically possible at that point. Keeping UE5 would have meant giving up instant browser play, so I pivoted right away to evaluate Unity 6 (UNITY-GENESIS.MD), which explains a running joke still sitting on my Windows drive today: the Unity folder is permanently named C:\koodaus\UE5-V1.

Unity Attempt #1: Great Engine, Wrong Fit for My Browser Constraint

Unity is a genuinely strong, battle-tested engine that powers a huge share of the indie and mobile games I admire, and it looked much closer to the lightweight stylized feel I wanted.

Over the next 48 hours, however, my own AI setup inside C:\koodaus\UE5-V1 churned through 161 governance commits without ever leaving initial project setup. Meanwhile, in a sibling folder (unity-3dmodels), I had the AI build an engine-neutral Python + Blender world baker to turn a continent concept map (3,840 × 2,560 meters, 384 chunks) into compact binary chunk files that both Unity and the browser game could load.

Then I flew the Unity camera over my first continent bake on the morning of August 22. My own flat biome masks had turned into giant stepped walls across the landscape.

VISION: Aug 21 — the continent concept map showing the frozen Pall on the west, the strait bridge, farmlands, and harbor capital.
VISIONAug 21 — the continent concept map showing the frozen Pall on the west, the strait bridge, farmlands, and harbor capital.
REALITY: Aug 22 — raw Unity 6 fly-camera shot across the strait bridge, exposing giant vertical biome-cliff walls where my flat height masks stepped abruptly.
REALITYAug 22 — raw Unity 6 fly-camera shot across the strait bridge, exposing giant vertical biome-cliff walls where my flat height masks stepped abruptly.
The dream continent map versus my very first Unity 3D fly-through the next morning.

That morning forced a moment of clarity. Even with an engine as capable as Unity, delivering a lightweight, zero-download mobile browser MMORPG through its WebGL export wasn't something I knew how to pull off cleanly — meanwhile, my first browser prototype (td-v1) was already working on friends' phones with zero app-store friction. Click a link, play immediately, make an account only if you like it.

I paused Unity, exported the 24× larger 384-chunk world straight into the browser client, and kept moving.

Unity Attempt #2: Stopping Cleanly at Zero Lines of Code

Ten days later, on September 2, I gave Unity one more look — not as a game runtime, strictly as an offline world-building workshop to sculpt terrain and export meshes into the browser renderer.

Before writing a single line of C#, I had the AI run a read-only check of Unity's 2026-06-30 Terms of Service and Editor Software Terms. Two sections stood out immediately: the Authorized Agentic Access language around automated AI/CLI workflows driving the Editor outside an authorized gateway, and the separate-rights language around modifying Unity projects for export to non-Unity runtimes.

I'm not a lawyer, and I had zero interest in guessing at gray-area license clauses for an indie alpha. Rather than build months of tooling on top of license uncertainty, I stopped cleanly at zero lines of code and moved all 3D asset authoring permanently to open-source headless Blender and Python. In hindsight, that single decision kept the whole pipeline clean and self-contained.

Admitting My Custom Renderer Looked "A Bit Meh"

Meanwhile, throughout late August and September, I was rewriting the multiplayer backend in Rust (the subject of Part 4) and beginning to ship live hosted alpha releases (R0, R1, and onward). By late September, that Rust backend was solid and the custom WebGPU/WebGL2 renderer was still hitting 60 FPS — yet visually, the game looked painfully flat. I watched other developers' Three.js browser demos online and finally typed the honest verdict into my log on September 28:

"I see videos of people generating Three.js with super nice quality. Our quality is a bit 'meh'. If your data shows that Three.js is a good pick instead of our custom engine, then let's retire our custom engine."

Killing code you spent weeks steering hurts your pride a little, so I didn't guess — I had the AI set up a live mobile bake-off directly on my OnePlus 12 comparing Three.js WebGL, Three.js WebGPU, and Babylon.js 9 under the exact same scene and frame-time telemetry.

Three.js WebGLRenderer won cleanly on my phone hardware. On October 6 (release R3), it shipped behind a ?renderer= toggle at full parity. On October 7 (R4), it became the default and I retired the custom WebGPU/WebGL2 renderer.

OCT 5 (DAY 1): Initial Three.js port matching the legacy flat renderer for strict 1-to-1 parity verification.
OCT 5 (DAY 1)Initial Three.js port matching the legacy flat renderer for strict 1-to-1 parity verification.
OCT 7 (48 HOURS LATER): Warm golden-hour sky gradient, directional sunlight, lit terrain slopes, and rim-lit characters inside the combat telegraph ring.
OCT 7 (48 HOURS LATER)Warm golden-hour sky gradient, directional sunlight, lit terrain slopes, and rim-lit characters inside the combat telegraph ring.
Forty-eight hours on Three.js — from Day 1 unlit parity port (left) to golden-hour sky, directional sunlight, and lit terrain/character shading (right).

Switching to Three.js unlocked two wins right away:

  • Faster visual iteration: Within 48 hours of switching, lighting and custom GLSL shaders jumped ahead of everything the custom engine had managed in six weeks.
  • 60% smaller downloads: Pairing Three.js with meshoptimizer lossless .pmesh compression shrank the rigged character bundles from 2.91–4.39 MB down to 1.16–1.61 MB — huge when your whole pitch is instant play on a phone connection.

Of course, while all these client engine detours were playing out, the real backbone of The Pall was being rebuilt from the ground up in a clean-room Rust multiplayer server — where I was about to meet the single weirdest bug of the entire project: a Linux kernel clock that quietly lied about time.

FEATURED GAME · OPEN ALPHA · FREE (LV 1–6)

The Pall

A phones-first dark-fantasy browser MMORPG built on a custom Rust realm server — play the Levels 1–6 South Start Valley free in Open Alpha with zero app store install and no invite code required.

View The Pall →
RELEASE & DEVLOG ALERTS

Follow Future Deep Dives & Game Launches

No spam — only real engineering writeups, alpha updates, and launches.

← All Devlogs