Files
Eagler-Archive/incari-client/files/docs/adr/README.md
T

8.4 KiB

Architecture decision records

Each ADR records one decision: the problem, what was chosen and why, and what it costs. They're the project's memory. Read the ones for the area you're changing before you change it, and add one when you make a decision someone would otherwise have to rediscover.

Writing one

  • Copy the header of a recent ADR: - Status, - Date, and - Builds on when it extends earlier ones. Then Context, Decision, Consequences, and measurements when there are any.
  • Number it after the last one, and add it to the table below.
  • Status is accepted once the change is merged. When a later ADR replaces part of one, say so in its status line ("superseded in part by ADR NNNN") rather than editing the old decision.
  • Write for someone who wasn't there. Measurements say where they were taken (the machine names in docs/benchmark.md).

Index

ADR Decision
0001 The repo is patch-only, built on the Spigot/Paper model
0002 GPL-3.0-or-later with a Minecraft additional permission, and DCO sign-off
0003 Enforced module boundaries and one set of quality gates
0004 The game is built from the patched source tree, starting with decompile fixes
0005 The platform layer: whole-class replacements over Platform interfaces
0006 How the browser build links: removals by rule, a class library for the rest
0007 The WebGL2 backend, under Mojang's frontend, with shaders translated at build time
0008 Off-heap memory in the module's linear memory, and Netty in heap mode
0009 A WebSocket transport under the game's Connection, one packet per message
0010 Browser input: focus, a text input element, an asynchronous clipboard, dropped files
0011 Storage: the file system in memory, written behind to OPFS by a worker
0012 Every pipeline in WebGL2, and screenshot diffs against the desktop
0013 Sound over Web Audio, with the browser's decoder and the desktop's panning
0014 The loader page, the build manifest, the service worker and the asset pack
0015 The background pool runs between frames, and the render thread's waits are counted
0016 The Eagler handshake in the client, and Eagler skins
0017 Via in the client, and choosing a server's version
0018 "Auto" finds a server's version by joining
0019 Eagler's extras: passwords, cookies, redirects, voice chat and shared worlds
0020 The legacy behaviour layer: playing 1.8 servers as 1.8 did
0021 The profiler, the benchmark and the performance gate
0022 Terrain in a few multi-draws a frame
0023 Terrain meshed in Web Workers by Incari's own mesher
0024 Entities, particles and text
0025 The memory diet
0026 Start-up
0027 Performance follow-ups: the compile, the backend's calls, and the game's own costs
0028 The web folder (./incari build)
0029 Edit Profile
0030 Ideas from the Java optimization mods: draw lists, facing culling, sprite animation
0031 What the floor stand-in's profiles found: items, ambient particles, glyphs, tints, indices
0032 Catch-up ticks paced, mesher tables kept, light maps updated in place, particles instanced
0033 Throws off the page's main thread: the packet handoff, and Via's dropped packets
0034 Fixed translucent orders, the class library's lookups, collision sweeps, and Binaryen
0035 A floor for the background pool's share of a late frame
0036 Fast and Compatible builds (JSPI instead of coroutines)
0037 The Unicode font and the languages from the asset index
0038 Singleplayer in the page
0039 Singleplayer's server in a Web Worker
0040 Singleplayer's server, faster: wakeups, math, spawn settings, stronghold rings
0041 Singleplayer's files in place, a direct line to storage, and cheaper world generation
0042 Density functions' branches sampled where used, terrain helpers, and goals' flags as masks
0043 Less garbage in world generation, the client jar compacted, faster saves, and wasm-opt and channel wakeups measured again
0044 Defaults and fixes before M4
0045 An Eagler server's pause menu, voice chat in a panel, the player on the title screen
0046 The module framework
0047 The game's screens changed and redrawn without a patch each
0048 The client's look, Frost, in Potato and Normal presets
0049 The HUD editor
0050 The first modules, and what they read of the game
0051 Minimap and waypoints
0052 The HUD modules: Keystrokes, CPS, FPS, Reach, Coordinates, Shield & Totem
0053 The visual and combat modules: Cooldown, Crosshair, Freelook, Weather, Low Shield, 1.7
0054 The screen modules: Shulker Tooltips, Screenshot Manager, Theme Editor
0055 The built-in packs in the page, and Old Textures
0056 The look's first performance pass
0057 One HTML file (./incari build --html)
0058 Incari accounts and the online service (client side)
0059 Incari chat: friends, messages and the chat menu
0060 The update notice
0061 Cosmetics: the Wardrobe, worn cosmetics, emotes and personal effects
0062 Incari Settings, and the 2026-10-12 batch
0063 The modules' first performance pass
0064 TeaVM 0.16.0
0065 Wispcraft: Java servers through a Wisp proxy
0066 Schematics, written clean-room
0067 Custom Sky: resource packs' OptiFine skies
0068 An experimental Rust build on Horizon
0069 Incari Client itself on Horizon
0070 Microsoft sign-in for online-mode servers
0071 Via is off unless the player turns it on
0072 A hidden page keeps time in a worker, so servers don't time it out
0073 Combat modules predict; they never play for the player
0074 The browser build never calls Mojang's services on its own
0075 Server messages reach the game within a frame in the browser