Wire M10.7b interpolation and the stale loss view into the client
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m55s
Foundation / checks (client) (push) Successful in 12m27s
Foundation / checks (network) (push) Successful in 12m46s
Foundation / checks (tsan) (push) Successful in 7m59s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 25m13s
Foundation / checks (postgres) (push) Canceled after 12m48s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m55s
Foundation / checks (client) (push) Successful in 12m27s
Foundation / checks (network) (push) Successful in 12m46s
Foundation / checks (tsan) (push) Successful in 7m59s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 25m13s
Foundation / checks (postgres) (push) Canceled after 12m48s
ADR-0095. The engineering client times presentation with the tick clock: its own marker between ticks, other markers interpolated a few ticks behind (grey when stale). Silence beyond 3 ticks and long-gap holds are stale. A lost session leaves its last view frozen and labelled stale until the reconnect's fresh baseline; nothing is predicted or sent meanwhile. evo-motion-trace --remote measures remote-marker error between two clients through the relay, with a 1.5 s outage (motion-trace-remote-smoke CTest). Prediction errors are recorded only for ticks inputs are scheduled for. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -55,3 +55,34 @@ when a snapshot is lost. No controllable organism moves yet.
|
||||
- Remote markers are shown 100-300 ms in the past, the own marker in the predicted
|
||||
present. That is the usual split; interactions that need both are later work.
|
||||
- Extrapolated or stale markers are flagged so the client can draw them differently.
|
||||
|
||||
## M10.7b client wiring, loss view and traces (2026-10-06)
|
||||
- **Engineering client** (`apps/evo-client/remote_session.hpp`):
|
||||
- every newly observed server tick (watermark or snapshot) feeds the clock;
|
||||
- each snapshot's other markers go to the interpolator;
|
||||
- the own marker is presented at clock + lead, between whole ticks;
|
||||
- other markers are presented at clock - delay;
|
||||
- the Session panel shows the delay and the stale count;
|
||||
- stale markers are drawn grey.
|
||||
- **Silence is stale.** The clock freezes one tick past the last observation, so on a
|
||||
silent link the render tick never passes the newest snapshot. Markers are therefore also
|
||||
stale once 3 ticks (150 ms) pass without any observation. A marker held across a gap of
|
||||
more than 8 ticks is stale too.
|
||||
- **Session loss.** The last view stays frozen: the own marker at its last authoritative
|
||||
position, all markers stale. The banner reads "STALE (last view, frozen)" and the
|
||||
environment is already stale-encoded. Nothing is predicted or sent. Welcome resets the
|
||||
clock, interpolator and markers (fresh baseline). The server already stops admission and
|
||||
removes the marker when a session closes: no offline progression.
|
||||
- **Error measurement** records a prediction only for ticks at or before the newest server
|
||||
tick plus the lead. The clock may run one tick past the newest observation, and inputs
|
||||
for such a tick may still come. Recording it gave false errors, seen as a Windows-only
|
||||
test failure.
|
||||
- **Evidence:**
|
||||
- `client-remote-session`: the frozen stale view and its reset on reconnect; two
|
||||
sessions each seeing the other's marker behind its own predicted view; removal when
|
||||
one leaves.
|
||||
- `evo-motion-trace --remote`, with the CTest `motion-trace-remote-smoke`: current
|
||||
markers' 95th percentile within 1 m, the outage mostly shown stale, recovery after it.
|
||||
- Figures in [M10_PREDICTION_TRACES](../networking/M10_PREDICTION_TRACES.md).
|
||||
- Not covered: interpolating organisms (none move; they are shown as replicated and never
|
||||
extrapolated). M10.7 is complete.
|
||||
|
||||
Reference in New Issue
Block a user