Function: fadeWindowMs()
fadeWindowMs(
stats?):number
Defined in: remote.ts:89
Size the preview fade from measured delays — D3's "a little more scientific".
The estimate is the life of a pen-up stroke: the points ride up and the video rides back (one full RTT between them), the capture can miss a frame and catch the next (two frame intervals), the jitter buffer holds the frame for its measured residence, and the codec takes its unreported margin. The window is then 1.5× the estimate, because the failure modes are not symmetric: a preview that outlives the truth is a slightly darker stroke for 100 ms, while a preview that dies first is a hole in the ink. Clamped, because a fade below ~300 ms reads as flicker and one above ~1.5 s reads as broken.
With no stats at all, this is exactly PREVIEW_FADE_MS.
Parameters
stats?
Returns
number