Skip to content

docs: add the netcode write-up - #149

Open
Timerk wants to merge 2 commits into
mainfrom
docs/netcode-write-up
Open

Timerk wants to merge 2 commits into
mainfrom
docs/netcode-write-up

Conversation

@Timerk

@Timerk Timerk commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Phase 6 of 6 of the real-time netcode rework (#144–#148, all merged).

What this adds

  • docs/NETCODE.md: the netcode design for reviewers:
    • a results table comparing the code before and after the rework;
    • how to try it (--netsim, F8 overlay, the benchmark command);
    • a sequence diagram;
    • one section each on inputs and the server input buffer, prediction and reconciliation, interpolation, snapshot encoding, the ENet throttle fix and the network simulator;
    • the tests, with the degraded-network CI limits and values from the merged commit's CI run;
    • a timeline of the six PRs, the tradeoffs and the limitations.
  • README: one link in the document list, and a corrected networking paragraph under Code layout. It still described 20 Hz intent and unsmoothed snapshots. The README is not restructured.
  • docs/netcode-baseline.md stays the full measurement record and now links to the write-up.
  • GAME_PLAN.md: item 6 records that a short README link was approved and that restructuring the README still needs approval.

Validation

  • Documentation-only change. Every relative link in the changed files resolves, and every table row has a consistent column count. git diff --check is clean.
  • Each number in the write-up comes from docs/netcode-baseline.md, the phase PRs, or the DEGRADED_NETWORK JSON in the final CI logs of test: add degraded-network playthroughs #148.

Limitations

All the numbers come from the in-process network simulator. The rework hasn't been playtested on real high-latency links yet, and the write-up says so.

🤖 Generated with Claude Code

Timerk and others added 2 commits November 27, 2026 08:26
Describe the input, prediction, interpolation, snapshot and transport
design, the before/after measurements, the degraded-network CI limits
with values from the merged commit, a timeline of the six phases, and
the tradeoffs and remaining limitations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add the write-up to the README's document list and correct the stale
description of shared-play networking in the code layout section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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