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:
@@ -38,8 +38,10 @@ void clock_basics() {
|
||||
// A resume far ahead (pause, reconnect) snaps forward.
|
||||
clock.observe(200, t0 + milliseconds{5000});
|
||||
CHECK(clock.snaps() == 1 && near(must(clock.at(t0 + milliseconds{5000})), 200));
|
||||
// Silence is measured in local ticks since the last observation.
|
||||
CHECK(near(must(clock.silence(t0 + milliseconds{5100})), 2));
|
||||
clock.reset();
|
||||
CHECK(!clock.at(t0));
|
||||
CHECK(!clock.at(t0) && !clock.silence(t0));
|
||||
clock.observe(3, t0);
|
||||
CHECK(near(must(clock.at(t0)), 3)); // After a reset (new epoch) it may start lower.
|
||||
}
|
||||
@@ -108,7 +110,8 @@ void interpolation() {
|
||||
const std::vector<RemoteMarker> later{marker(1, 9'000'000)};
|
||||
m.push(20, later);
|
||||
at = m.at(12);
|
||||
CHECK(at.size() == 2 && near(at[0].x, 400'000) && m.stats().gap_snaps == 1);
|
||||
CHECK(at.size() == 2 && near(at[0].x, 400'000) && at[0].stale && at[1].stale &&
|
||||
m.stats().gap_snaps == 1);
|
||||
CHECK(near(m.at(20)[0].x, 9'000'000));
|
||||
m.reset();
|
||||
CHECK(m.at(20).empty() && near(m.delay(), 2));
|
||||
|
||||
Reference in New Issue
Block a user