Commit Graph
3 Commits
Author SHA1 Message Date
47effec8d6 Add §14 Known Issues to Delta-Sync-flow.md: bugs and planned fixes
- Issue 1: SpectatorRegistryService is in-memory per-process; spectators
  miss updates in scaled deployments due to load-balancer routing mismatch.
  Fix: move registry to Redis.
- Issue 2: get_unit_by_id null crash when arch is null (not absent) on
  player disconnect. Fix: use 'is Dictionary' guard instead of .get({}).
- Issue 3: ChangedTiles must only include actually-changed tiles; fix is
  server-side only.
- Issue 4: modelUrl/art2dUrl sent in every UnitDelta; strip from delta,
  derive from card definition; iOS Safari: cache on first sight.
- Issue 5: iOS Safari memory crash from unbounded asset cache; layered
  fix: scoped loading, lazy load, disk cache for non-iOS, evict on removal.
- Issue 6: _fetch_state() race on version gap; fix with _syncing flag.
- §12: clarified IsEmpty should never fire in practice (MP always regenerates).

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-05-20 17:23:50 -04:00
150a20b0ab Fix Delta-Sync-flow.md: add effectsJson, clarify line number stability
- Section 11: add missing effectsJson field to _merge_unit_delta snippet
- Section 11: add note that line numbers drift; prefer symbol names for navigation

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-05-20 09:13:25 -04:00
83217c630e Add Delta-Sync-flow.md: end-to-end delta sync reference
Documents the complete delta lifecycle from server action handler
through GameStateDiffer computation, PushStateToPlayersAsync dispatch,
Redis transport, and client-side application in Game.gd/_apply_delta.
Includes line numbers, code snippets, wire types, and design invariants.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-05-20 07:46:55 -04:00