FROSTENGINE MMO ARCHITECTURE & TELEMETRY

How a FrostEngine
realm scales cleanly.

Inspect the exact process topology, persistence durability pipeline, network interest-management budget, verified release benchmarks, and transparent scaling caveats of FrostEngine v0.1.0.

01 / SYSTEM DIAGRAMS

Three core pipelines.
Zero black boxes.

Every service role, security primitive, and persistence boundary corresponds directly to implemented C++20 modules in FrostServices and FrostRuntime.

DIAGRAM 01 · CLUSTER TOPOLOGY

FrostServices + Multi-Zone Cluster

Clients authenticate at the Gateway and connect over encrypted UDP to authoritative FrostRuntime zones managed by per-machine Orchestrators. Backend RPC runs on Cap'n Proto 1.5 + libsodium (Ed25519 certs + XChaCha20-Poly1305).

FROSTSERVICES HOST (CAP'N PROTO 1.5 + LIBSODIUM) ZONE MACHINE · ORCHESTRATOR + ZONES Game Clients FrostRuntime Encrypted UDP Gateway UDP :27015 · Queue Login Argon2id · 2FA Coordinator 5.9 µs placement Social Guilds·Mail·AH Central Persistence Service Character leases · SQLite (dev) / PostgreSQL (prod) Machine Orchestrator Zone lifecycle · /metrics · /health Zone A (Hub) UDP :27200 Local LMDB Zone B (Wilds) UDP :27201 Local LMDB Warm Dungeon Instance Pool Pre-warmed shards & party placement affinity Session token Handoff BorderGhost
DIAGRAM 02 · TWO-TIER DURABLE PERSISTENCE

Sub-ms LMDB Local Commits → Central PostgreSQL / SQLite

Persistence.Transact commits atomically to zone-local LMDB with a tamper-evident hash chain before returning durable, then asynchronously replicates to central SQLite or PostgreSQL under active character leases.

Lua / RPG Gameplay Persistence.Transact() Schema validated <= 224 KiB handoff cap Zone-Local LMDB < 1 ms durable commit Crash-safe local reopen Hash-chained records Economy Ledger Tamper-evident audit Lease & Write-Behind Prevents split-brain Central Store SQLite (dev / 1-box) PostgreSQL (native) Lua migrations + backup Atomic Async sync
DIAGRAM 03 · MMO NETWORKING PIPELINE

Interest Management, Delta Quantization & Adaptive Budgets

Each zone tick filters entities per client before bit-packing quantized deltas under AIMD byte budgets, achieving ~6.1 KB/s per player in steady-state crowds alongside a dedicated 6-message RPG lane.

1. Relevancy Range + hysteresis Phase / team / cap 2. Delta Pack Last-acked baseline ~18 bits / walker 3. AIMD Budget Priority accumulator ~6.1 KB/s / player 4. zstd + RPG Trained zstd dicts 6-msg RPG lane 5. Encrypted UDP GameNetworkingSockets Predict + Rewind
02 / VERIFIED RELEASE BENCHMARKS

Full measured telemetry.
Reproducible suites.

All measurements captured in Release builds on AMD Ryzen 9 5900X, NVIDIA RTX 4070 SUPER, Windows 11 x64, using FrostEngine's built-in benchmark and load-test harnesses.

Benchmark / Suite Workload Measured Result Notes
Client Crowd Scale (Crowd1000) 1,000 layered characters + 200 GPU particle emitters @ 1280×720 6.68 ms p99 (LowLatency) · 1.73 ms (Throughput) 8-layer CharacterAppearance, Near/Mid/Far LOD, 2-draw instanced nameplates
Zone Pipeline (Benchmarks.Pipeline) 2,500 simulated clients + 50,000 NPCs (in-process pipeline) 21.9 ms p99 Full pipeline benchmark; see live single-zone NPC caveat below
RPG Combat Stages 2,500 players + 5,000 active NPCs 1.82 ms / tick Authoritative stats, abilities, auras, and threat resolution
Steady-State Bandwidth Crowded zone gameplay + dedicated RPG lane ~6.1 KB/s / player 354 B/s duel · 2.8 KB/s 40-actor RPG lane · ~18 bits/walking character
Memory Footprint (LoadTest.MiniMMOGate) 300 live bot clients + RPG NPC storage 87–107 KiB / player · 402 B / idle NPC Measured end-to-end with persistence and replication active
Coordinator Scale (100k players) Placement, handoff authorization, and player locator lookups 5.9 µs placement · 67 µs grant · 90 ns locator In-memory sharded coordinator state across 100,000 tracked sessions
03 / TRANSPARENT ENGINEERING BOUNDARIES

Honest scaling caveats & active work in v0.1.0

We publish measured limits alongside our benchmarks so teams can architect realistic realms today without surprises:

  • Live single-zone NPC ceiling: Within a strict 25 ms p99 live tick budget, a single live zone currently sustains ~16,000 active NPCs (our 50k single-zone target is ongoing optimization work).
  • Single-machine all-in-one realm limit: Running every service + zones on one machine holds ~1,390–2,437 bots before persistence/login I/O saturates; scaling toward 10k+ concurrent players requires spreading services and zones across multiple machines.
  • Zone handoff latency: End-to-end cross-zone handoff p99 currently measures 313 ms (actively optimizing toward our 200 ms target).
  • Planned / in-progress items: Server-side per-tier snapshot layouts, remote realm-client RPG UI kit windows reading the RPG lane, Linux native desktop client export, and macOS build verification remain in progress. Dear ImGui multi-viewport (dragging panels outside the main editor window) is intentionally unsupported.