Devlog 4 min read Triarii Engineering

Devlog: Engineering Zero-Lag Mobile Keyboards & Server-Authoritative Timers

How fine-grained Svelte 5 runes, CSS containment, and lazy timestamp math keep battery usage low and touch response instantaneous on Android.

Anagram Race Word Packs and Store interface running on Svelte 5

Every Millisecond Between Thumb and Tile Matters

In a fast word race, a 50ms input stutter breaks a player's rhythm. When building Anagram Race with Svelte 5 and Capacitor 8, we established three non-negotiable engineering rules:

1. Pointer-Down Dispatch & Zero Deep Proxies on Large Decks

Solo decks contain over 7,500 words. Wrapping static word pools in deep reactive proxies wastes megabytes of heap and triggers unnecessary garbage collection pauses. Instead, decks live in plain arrays while Svelte 5 $state and $derived runes track only the 3 visible wheel words and active keystroke buffer.

2. CSS Layout Containment on Split Keyboards

Whether playing one-handed in portrait or two-thumbed on our landscape split QWERTY layout, applying contain: layout style paint isolates button press states from reflowing the central anagram wheel.

3. Zero-Cron Lazy Timestamp Math on the Server

From match escalation intervals to our new 5-pip Stamina system, our Node.js server computes exact state via pure UTC timestamp deltas rather than background polling loops—keeping server CPU flat even as concurrent lobbies scale.

  • #Devlog
  • #Svelte 5
  • #Performance
  • #Mobile

More News

All News