← demo & playground
Trail measurement
A measuring aid for the motion trails, for development only: it leaves
before the release, with the viewer's switch it relies on. Every case plays the clip
(a trampoline, so the obstacles are in the picture) from the same
fixed camera, looping, with the stats overlay on. Full page opens the viewer alone in
the tab; Preview opens a small host page with one embedded preview of
px, the skills graph's badge size.
How to measure
- One case at a time, nothing else running. Let it play about 10 s, then read the
overlay's first two lines for a few seconds and note the typical values.
- Every link carries
: the viewer then neither reads nor writes
this browser's stored settings, so your own trail tuning and panel settings do not change
the picture, and nothing changed while measuring is kept. A link without it: measure in a
private window.
- The stats overlay:
fps | % late are the frames per second over the last
2 s and the share of frames that took over 1.5 times the device's best frame;
frame is the time between frames (median, 95th percentile, longest, in ms),
script the viewer's own work per frame, gpu the GPU time where the
browser reports it (n/a in Firefox and on most phones).
- The two rows on are read on their Preview page:
"Longest frame since this page loaded", Comet's minus the one without trails, is the
trail's first build, which solves every frame of the clip. The overlay cannot show it (it
happens before its first frame, and it counts a pause over 0.5 s as a gap). These rows
need the
/mocap-data/ mount: serve.js or Live Server on the laptop.
- The rows "Still badge with depth of field" show the skills graph's still badge
(
dof=front) with the floor, shadows and obstacles hidden instead of
figureonly, which would hide the trails: without trails, and Comet and Fire
with the trails blurred by their own depth (the default) and exempt
(trailexempt:1, drawn sharp over the blur). Compare each with the row without
trails: if "own depth" costs clearly more than "exempt", exempt becomes the default.
Cases
Facts per case