Skip to content

perf: quantize and delta-encode world snapshots - #147

Merged
Timerk merged 3 commits into
mainfrom
perf/snapshot-encoding
Nov 26, 2026
Merged

Timerk merged 3 commits into
mainfrom
perf/snapshot-encoding

Conversation

@Timerk

@Timerk Timerk commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Stack

Phase 4 of the real-time netcode rework. Base is feat/snapshot-interpolation (#146). Merge order is #144 → #145 → #146 → this PR.

Changes

  • Schema 26 quantizes remote pilot and alien transforms and health. The owner retains the previous reconciliation and repair precision, and reliable profiles still travel by revision.
  • Clients acknowledge complete snapshots through their existing input RPC. The server sends changed field groups against the exact acknowledged baseline, with full snapshots after a visit change or a missing or expired baseline. World payloads split at 1,200 bytes and apply by part.
  • F8 reports per-viewer world payload bytes per second and per tick, baseline use, and full fallbacks.

Validation

  • Both traffic benchmarks ran on phase 3 and phase 4. Ten pilots and five aliens dropped from 22,529 to 6,705 ENet B/s per viewer. The seven four-pilot relay conditions dropped from 14.4–15.0 to 5.2–5.9 kB/s. Both builds lost zero inputs, with p95 reconciliation error rounding to 0.00 m.
  • The four-pilot degraded run showed worse remote smoothness at 23 fps. The 102–103 fps two-pilot repeat had the same p95 render error and drawn acceleration, with extrapolation at 1.3% before and 2.1% after. See the benchmark tables.
  • The full Windows run passed reconciliation, interpolation, snapshot privacy, codec, MTU, dedicated-server, and the other gameplay checks. It surfaced a 960×600 HUD layout regression, which passed after restoring the original panel size. The relay/F8 integration test passed on its separate run.
  • The simulator's live latency timing assertion failed both in the full run and in isolation. The identical failure also reproduced in isolation on unmodified phase 3 (7c9933a). Linux validation runs in CI.

🤖 Generated with Claude Code

@Timerk
Timerk marked this pull request as ready for review November 26, 2026 17:39
@Timerk
Timerk force-pushed the feat/snapshot-interpolation branch from 7c9933a to 7f7ec31 Compare November 26, 2026 19:21
@Timerk
Timerk force-pushed the perf/snapshot-encoding branch from 7a9c29d to 2bf1694 Compare November 26, 2026 19:22
@Timerk
Timerk changed the base branch from feat/snapshot-interpolation to main November 26, 2026 19:22
@Timerk
Timerk merged commit e1dbca3 into main Nov 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant