From 5 Struggling Bots to 1,500+ MMORPG Players on One €10.49 ARM VPS
How I went from struggling with 5 browser bots and setting an 'ultimate goal' of 50 to holding 1,501 live MMORPG players on one €10.49/month 4-core ARM64 VPS — plus the full tech stack, open-source credits, and an open invite to try The Pall Alpha.

In This 7-Part Series: Building The Pall▾
- 01I Never Meant to Build an MMORPG: How an AI-Org Experiment Escalated Into The Pall6m
- 02One Prompt, 18 AI Employees, 76 Ticks — And Why the Charging Wolf Looked Like a Tree5m
- 03I Banned Three.js, Built Custom WebGPU, Tested Unreal and Unity, Then Came Back to Three.js6m
- 04The 6-Hour Crash Test That Failed on Interval #4,277 — And the 10% Slow Linux Clock7m
- 05583 Tracker Commits, Zero Features, and 192 GiB of Evidence: Cutting 85% of My Own AI Bureaucracy13m
- 06My Validator Rejected 21,500 Lines of AI Terrain (6,096 Floating Road Vertices) — Building the Valley in Code & Headless Blender6m
- 07From 5 Struggling Bots to 1,500+ MMORPG Players on One €10.49 ARM VPSREADING
On November 7, I wanted to see what happened if I put real bot traffic on my €10.49/month Hetzner Cloud CAX21 server (4 shared ARM64 Neoverse-N1 vCPUs, 8 GiB RAM, Helsinki — running the Rust world server, Node API, Caddy, and PostgreSQL all on the same box).
I was not aiming for thousands of players. Looking back at my own note from that morning makes me smile:
"Ultimate goal would be get 50 bots online at once."
A day later, as the walls kept moving, I doubled down: "Idea is to push and optimize code. Bigger server is off the table. We started with issues with 3 players, now we talk about 250 player tests."
Over the next 21 days — 22 live Crowd Sessions followed by 14 ARM64 perf optimization cycles — that exact same €10.49 machine climbed from 5 browser bots struggling against rate limits to 1,400 players at full 10 Hz normal speed, 1,501 live players while I played on my OnePlus 12 at 76.3 FPS, and a 1,590 hard cap with zero dropped connections.
Act I: 5 Bots to 700 — Breaking Every Wall in Sight (Nov 7–11)
I had never load-tested an MMO server before, so every single session taught me something obvious in hindsight and completely invisible until real bots hit the wire.
5–6 Browser Bots (Session 1)
I started by having the AI spawn headless Chrome pages (Aino, Eero, Lumi, Onni, and Saga) walking and fighting in the Gateyard. Bot #6 crashed straight into two walls at once: six Chrome instances filled my local 4 GiB cgroup cap, and because every browser page polled /v1/account every 30 seconds, the sixth bot tripped the per-IP HTTP 429 rate limiter (meaning 15 players behind one campus or mobile CGNAT IP would have locked each other out!).
Even with just 5 bots, the server hit 11.7% whole-host CPU, and a quick linear projection warned that the tick would cross its 30 ms budget around 40 players and saturate all four cores at 45 to 50.
Reaching 51 Stable Fighters (Sessions 2–7)
To scale past five browsers, I had the AI build lightweight Node bots running the game's actual compiled WebAssembly movement & wire codec (2.4 MiB per bot instead of 400 MiB for Chrome) and dropped a 40-mob training Horde (60,000 HP each, 1 HP damage) into the valley so parties could spam combat skills nonstop.
At 51 fighters (Session 4), the test hit my original 50-bot goal — and immediately suffered 30 mystery disconnects. A diagnostic run caught a classic edge case: the combat settlement capped participants at 10 per mob, so the 11th fighter stalled in Pending forever until its 33rd retry killed the WebSocket with code 1011 roughly 160 seconds later. Turning away the 11th hitter cleanly fixed it, and Session 7 held 51 active fighters with zero drops and half the average tick time (6.4 ms).
92 → 191 → 250 → 388: Lock Waits, JSON Bloat, and Self-Shutdowns (Sessions 8–13)
Once 50 worked, curiosity took over ("How about 100? 200? 500? 1,000? Where is the limit?"). Pushing past 90 fighters exposed four painful bottlenecks in 36 hours:
- PostgreSQL lock waits at 92 fighters (Session 8): 5-second checkpoint batches blocked combat saves and session renewals, kicking 24 bots. Batching checkpoints in groups of 10 and adding jitter cleared the lockouts.
- Overload self-shutdown at 191 players (Session 9): Growing the visible entity cap from 40 to 120 blew the HTTP UI-view JSON up to 43 KB, saturating all 4 cores. Worse, the overload guard shut the realm down cleanly with exit code 0, so
systemdhelpfully left the server offline! Fixing that exit code, trimming the combat save ring from 256 to 32 records, and sharing view offers unlocked all 250 players held (Session 10). - Port exhaustion at 373 & admission crashes at ~349 (Sessions 11–12): First my bot PC ran out of local WSL ports (7,557
TIME_WAITsockets until I switched the bots to HTTP/2). Then a full 64-job admission queue calledlatch_unhealthy()and killed the realm three times — fixed by cleanly shedding excess joins asrealm_busy.
Two Architecture Breakthroughs — And a 266 ms Phone Freeze (Sessions 14–22)
At Session 13, I finally set the AI to run real ARM64 perf and pg_stat_statements on the Hetzner box and saw something glaring: HTTP UI-view polling alone was eating 1.4 of the 4 CPU cores across Node, Caddy, and PostgreSQL!
- Moving Live View onto the Rust WebSocket (Session 14): The moment live UI views rode over the existing binary WebSocket instead of polling HTTP, API CPU dropped from 61.8% to 1.0% (−98%) and all 500 players walked right in with zero drops.
- Direct TLS in Rust (Session 17): Even after moving views off HTTP, Caddy was still burning 48.6% of a core just proxying WebSocket frames. Adding a direct
tokio-rustlsTLS 1.2/1.3 edge listener insideapps/worldbehind Cloudflare dropped Caddy CPU from 48.6% down to 0.04%. - One magic constant (Session 18): Pushing past 620 bots suddenly stalled view delivery because of a single constant (
REPLICATION_EXECUTOR_CAPACITY = 64). Raising it held 800 players at full 10 Hz. - The 266 ms phone touch freeze automated bots missed (Sessions 19–21): An earlier crowd optimization had stopped skinning remote players on the CPU every frame and moved vertex positions behind a lazy getter — pushing rendering to ~70 FPS. Four automated crowd sessions called it green because headless browsers never tapped the canvas. The moment I joined on my real OnePlus 12, every single touch — even starting a camera drag — froze the frame for 266 ms on average (314 ms max). Tracing
pointerdowncaught why: the world raycaster asked every visible body for its vertex bounding box, waking lazy CPU skinning across ~120 nearby characters on every tap! Rejecting bodies first with cheap rest-pose spheres and only skinning the handful of characters the ray actually crossed dropped touch-down picking from 266 ms to 2.2 ms median and pushed my phone to 94 FPS inside the crowd.


Session 22 (November 11, release R19n) established a clean full-burn baseline using a consistent mixed crowd on the Valley map (20% party-of-5 fighters, 30% walkers, 30% idlers, 20% millers): 700 players at 100% normal (10 Hz), 800 held, and 900 admission-closed cap (with 1 drop).
Act II: 14 Measured ARM64 perf Cycles — 700 → 1,501 Live (Nov 27–28)
Two weeks later, after the Valley atmosphere and gameplay systems landed, I wanted one more focused profiling push to see how far I could cleanly take this 4-core box before diminishing returns kicked in for me. Every cycle ran first on a local 4-core x86-64 crowd test rig (1,000 bots pinned to four cores), passed bit-exact parity checks, and then got verified with ARM64 perf 6.8.12 on the live Hetzner CAX21.
Four concrete discoveries did almost all the heavy lifting:
1. Spatial Queries 2.08× Faster — Verified Over 3.96 Million Points
At baseline, movement (4.36 ms/tick) and world discovery polls (2.26 ms/tick) ate 61% of the simulation tick. Replacing the 1D X-sweep collider index with a Wasm-safe 2D ColliderGrid, stack-allocated candidate arrays, and an O(1) gentle-cell ground path cut avatar substep time from 3.94 µs to 1.89 µs (2.08× faster) with zero heap allocations on loaded ground steps. Before merging, a parity verifier compared it against brute-force collision over 3.96 million Valley points, 665k Court points, and 5.83 million stepped paths — zero divergences.
2. Breaking the 100% Tokio Coordinator Wall & A 192-Byte Bitset
ARM64 profiling caught the single-threaded socket Coordinator pegged at 100% CPU: double-decoding packets, rebuilding a 1,000-entity replication grid 60 times a second instead of 20, and touching a 12 KiB MarkSlot array even for the ~92% of spatial candidates that were unmarked.
Offloading decoding to worker threads, caching the grid at 20 Hz, chunking writes into 64-writer batches, and adding a 3-cache-line Marks::active bitset (~192 bytes for 1,500 entities) cut the local 1,000-bot test rig's tick p99 by 60.9% (29.4 ms → 11.5 ms) and wiped out late views completely (132.8/s → 0.0/s).
struct Marks {
stamp: u32,
slots: Vec<MarkSlot>,
// 1 bit per marked entity (~192 bytes for 1,500 players = 3 L1d cache lines)
// so ~92% of spatial candidates never touch the 12 KiB `slots` array.
active: Vec<u64>,
chosen: Vec<u64>,
}
#[inline]
fn is_active(&self, index: usize) -> bool {
(self.active[index / 64] & (1_u64 << (index % 64))) != 0
}
// Inside ReplicationGrid::select_into_with_crowd:
if !marks.is_active(index) {
if distance_sq <= inner_sq {
let key = ((distance_sq as u64) << (PACKED_INDEX_BITS + 1))
| (1_u64 << PACKED_INDEX_BITS)
| u64::from(slot.index);
keys_u64.push(key);
}
continue;
}3. The PostgreSQL LANGUAGE sql Trap Caught by perf
My favorite surprise of the entire campaign wasn't in Rust at all. In Cycle 12 (R21d), PostgreSQL checkpoint CPU unexpectedly jumped from 27.2% to 38.7%, and ARM64 perf flagged pg_strtok burning 1.45% of all four cores.
Why was PostgreSQL tokenizing SQL strings hundreds of times per second? A clean-looking SQL-standard validator function declared with LANGUAGE sql ... SET search_path prevented planner inlining, forcing PostgreSQL's fmgr_sql to re-parse its body roughly 560 times per second inside checkpoint writes and table CHECK constraints.
Rewriting the checkpoint validators as session-cached LANGUAGE plpgsql (migration 0137) tested 24.9× faster in isolated queries, 2.4× faster in CHECK updates, cut checkpoint CPU by 10 percentage points immediately, and drove PostgreSQL CPU at 1,590 players lower than it had been at 900 players before the campaign!
--- 0099 + 0136 (TRAP: SET search_path blocks inlining -> fmgr_sql re-parses ~560x/s)
+++ 0137 (FIX: session-cached PL/pgSQL simple-expression plan, 24.9x faster)
-CREATE OR REPLACE FUNCTION pallwright.valid_character_checkpoint_resources(p jsonb, hp integer, energy integer)
-RETURNS boolean LANGUAGE sql IMMUTABLE STRICT SET search_path = pg_catalog, pallwright, pg_temp AS $$
- SELECT CASE WHEN p->>'schema' IN ('pall-force-health/1','pall-force-health/2')
- THEN pallwright.valid_force_health_checkpoint(p, hp, energy)
- ELSE pallwright.valid_resource_checkpoint(p, hp, energy) END
-$$;
+CREATE OR REPLACE FUNCTION pallwright.valid_character_checkpoint_resources(p jsonb, hp integer, energy integer)
+RETURNS boolean LANGUAGE plpgsql IMMUTABLE STRICT SET search_path = pg_catalog, pallwright, pg_temp AS $$
+DECLARE s text; cam text; mh text;
+BEGIN
+ IF jsonb_typeof(p) IS DISTINCT FROM 'object' THEN RETURN false; END IF;
+ s := p->>'schema';
+ IF s = 'pall-force-health/1' OR s = 'pall-force-health/2' THEN
+ -- inline schema & ASCII digit checks (no regex, cached per session)
+ RETURN cam::bigint BETWEEN 1 AND 253402300799999
+ AND mh::integer BETWEEN 1 AND 65535 AND hp BETWEEN 0 AND mh::integer AND energy = 0;
+ END IF;
+ RETURN pallwright.valid_resource_checkpoint(p, hp, energy);
+END $$;4. Catching a Lazy-Eval Regression & Choosing Where to Stop
In Cycle 13, a tidy OnceLock optimization accidentally triggered eager evaluation ~12,000 times/second on the Coordinator thread (1.58% of all 4 cores). Fixing the social/party visibility state (social_read::Visibility) to materialize lazily and moving Arc drops outside the mutex pushed the final test run (R21f) straight through every target I had set.
| Metric (4-Core Hetzner CAX21 ARM64, 8 GiB RAM) | Before (R19n) | After (R21f) | Improvement |
|---|---|---|---|
| 100% normal (10 Hz views) | 700 players | 1,400 players | 2.0× (+700) |
| Held live (0 drops) | 800 players | 1,501 players | +87.6% |
| Admission-closed hard cap | 900 (1 drop) | 1,590 (0 drops) | +76.7% |
| Move answer p50 / p95 @ 1,400 | 172 / 328 ms (@ 800) | 94 / 130 ms | −60% p95 |
| World server RSS @ cap | 398 MiB (@ 800) | 554 MiB (@ 1,590) | 22% of 8 GiB RAM |
| PostgreSQL CPU @ cap | 43.0% (@ 900) | 37.5% (@ 1,590) | Lower at 1,590 than 900 |
During the 1,501-player live hold, I picked up my OnePlus 12 (Snapdragon 8 Gen 3, high rendering tier) and walked around the Valley inside the crowd for almost two minutes at 76.3 FPS average (p95 frame time 21–22 ms) with zero disconnects across all 1,501 sockets.
Someone deeper in Linux kernel networking, Tokio internals, or PostgreSQL storage could almost certainly squeeze even more out of these four cores — replacing JSONB checkpoints with narrower binary columns or tuning the socket layer further, for instance. For me, once the single hottest function (select_into_with_crowd) was down to 4.22% and the rest was spread across networking, 19.1 ms simulation ticks, replication, and PostgreSQL, I ran out of obvious clean wins I felt confident chasing without overcomplicating the codebase. Stopping at 1,400–1,590 players on a €10.49 box feels like a great place to shift my energy back to the actual game — and if real players ever fill a realm past 1,500, moving to an 8-core €20.99 CAX31 or adding a second realm is a happy problem to have.
Quick methodology note so nobody has to guess: load traffic ran from external Node Wasm wire bots over real Cloudflare/TLS WebSockets hitting the Valley map with a fixed 20/30/30/20 fighter/walker/idler/miller mix. Synthetic bots are never identical to chaotic human crowds, which is why testing with real players is the next step.
The Tech Stack & Open-Source Credits
A solo studio only gets this far by standing on the shoulders of extraordinary open-source software and generous CC0 creators. Every tool and asset credited below is actively shipped in The Pall today under verified permissive licenses (zero GPL runtime dependencies across all 219 Cargo crates):
| Layer | Technologies & Verified Open-Source Credits |
|---|---|
| Authoritative World Server | Rust 1.93, tokio, hyper, fastwebsockets, rustls / tokio-rustls (ring), postgres, mimalloc, serde, postcard, slotmap, libm, uuid, sha2 |
| Browser Client & 3D Engine | TypeScript, Three.js (0.186.1, MIT), meshoptimizer (1.1.1, MIT), Vite, Vitest, Playwright, compiled Rust WebAssembly (pallwright-client-wasm) |
| Control Plane & Database | Node.js 24, Fastify 5, Drizzle ORM, pg, Nodemailer, PostgreSQL 16 (with lz4 & pg_stat_statements), SecLists common-password blocklist (MIT, Daniel Miessler) |
| World & Asset Pipeline | Blender 4.5 LTS (headless offline authoring & mesh patching), Tripo3D (Hadren base mesh & initial rig API), Python 3.12 (NumPy, SciPy, Pillow, pytest), Khronos KTX-Software (libktx), LAME |
| Hosting & Security Ops | Hetzner Cloud (CAX21 ARM64, Ubuntu 24.04 LTS), Caddy (v2.11.7), Cloudflare, Tailscale, age encrypted backups |
| CC0 3D Animations & Rigs | Quaternius (Universal Animation Library Standard v3.0, CC0 1.0 — NPC & Scavenger animations) and Mesh2Motion (Spider animation bundle, CC0 1.0 — Cave spiders) |
| CC0 Sound Effects | Kenney (Impact Sounds 1.0, CC0 1.0), rubberduck on OpenGameArt (80 CC0 RPG SFX, CC0 1.0), and Freesound CC0 contributors (hnhnh, kingsrow, ATG142, Andrastos87, mattfinarelli, SkySpeira) (complemented by commercial alpha ambience/SFX renders kept separate from CC0 credits) |
| Typography (SIL OFL 1.1) | Noto Sans (The Noto Project Authors) and Outfit (The Outfit Project Authors) |
Thank you to every single maintainer and artist behind those projects. Without tools like Rust, Three.js, PostgreSQL, Blender, and CC0 packs from creators like Quaternius and Kenney, a project like this wouldn't be remotely possible for one person.
Beyond the Engine — A World Waiting Past the Gate

A huge share of the past four months went into getting the engine, world pipeline, and authoritative server solid — and looking at where this landed, maybe I actually built something worthwhile. Better yet, the part I am most excited about hasn't even really started.
Underneath all the Rust crates and frame-time graphs sits a world I have been quietly building out in lore for months. Across a narrow stretch of sea hangs The Pall — a floating landmass close enough to see its peaks from the mainland, yet unreachable to every ship that ever tried to cross. Twenty years ago, it stopped keeping its distance. Something reached across to connect the two shores, and ever since, healthy ground has begun turning silent and dark, people have vanished leaving behind empty shells, and the old powers of the mainland's kingdoms have started to fade.
In the full world behind this project, four distinct peoples — the plated Hadren (the first playable race in alpha), Humans, Nerrane, and Kirrow — share a continent of competing crowns, factions, and frontier lands stretching from green eastern valleys all the way to the dark coast beneath The Pall itself.
Right now, the South Start Valley is just the opening doorstep. It is a focused Levels 1–6 starting zone with the first test classes (Warrior and Weaver), early quests, loot, trading, parties, and guilds — built as a proving ground to get the moment-to-moment game feeling great before unlocking the Pass Arch and opening up crafting professions and the wider world beyond it.
That is where my focus shifts next: turning a solid engine into a game that is genuinely fun to lose an evening in — sharpening combat weight, quest pacing, progression, social play, and bringing more of that lore directly into the world. The Pall Alpha is opening up for anyone who wants to step into the Valley on a phone or desktop browser, with zero install. Jump in, test the early classes, break things, and tell me straight what feels good, what feels clunky, and what needs work before the rest of the world opens up.
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.