Repository navigation
UniNet v0.24.1
Remote-motion smoothness patch (generator unchanged, wire formats unchanged — no client update required).
Fixed
- Remote samples are spaced by cadence, not by arrival time —
NetworkTransformstamped every received snapshot withUniNetTime.Now. When two deltas land in the same frame their arrival times are ~0 ms apart, so that segment collapsed to a sliver (or the second sample was refused by the buffer's monotonic guard and its position was lost entirely); the renderer then crossed the missing distance in a single frame. Remote bodies visibly jumped — most obvious during a dash, where the per-sample distance is largest. Each position/rotation buffer now advances its own sample clock by the estimated arrival cadence (seeded from the first real gap, bounded lead, stall resync), so every segment keeps a real width while the axis still tracks wall time. - The adaptive interpolation delay no longer steps a whole frame at once — the effective delay was recomputed from the arrival-gap EMA on every sample and applied instantly, so changing
InterpolationDelayat runtime (a game widening the window for a burst) movedrenderTimebackwards in one frame and the body jumped by the window change. The delay is now smoothed per sample toward its target, and its target is floored at ~one arrival gap so a sparse stream cannot starve the buffer into hold-then-catch-up.
Added
NetworkTransform.EffectiveInterpolationDelayis observable — the smoothed delay the renderer actually uses (previously an unused internal expression). Game instrumentation and regressions can assert on what is drawn instead of on the configured maximum.
Verified
NetworkTransformRemoteRenderTestsgains two regressions that fail on the old behaviour: a same-frame delta pair must keep both samples and a real segment width (arrival stamping produced a 1.0 ms sliver), and a runtimeInterpolationDelaychange must not move the delay more than a fraction of a sample at a time. Full Unity EditMode suite: 351 passed / 0 failed / 1 pre-existing skip.