forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 339d121d643d4e6933976a3df36bfee7f3d70629Filtered to scripts/av1-timeline-report.pyClear filter

2026-09-05

feat(av1): EC_AV1_TIMELINE -- per-frame decode timeline + critical-path reportAhmet Kaan Gümüş · 9cdd364
feat(av1): EC_AV1_TIMELINE -- per-frame decode timeline + critical-path report

Two lanes pipelined the loop filters per superblock row and recovered 2.3%
wall although the filters were 19% of frame-thread time; nobody had measured
the actual critical path. `EC_AV1_TIMELINE=1` records ~10 timestamps per
coded frame on one monotonic clock -- submit, worker start, each reference
slot wait (with the producing frame, so the DAG has real edges), header
setup, tile parse, wavefront drain, filters, slot publish, grain, output --
plus every block of the dispatcher at the in-flight bound, and dumps them as
TSV at stream end. `scripts/av1-timeline-report.py` reports phase medians,
the reference waits, the work-weighted critical path through the DAG,
concurrency at 10 ms ticks (in-flight vs actually RUNNING) and the cap waits.

Measured at (16,4,2) on the 4K segment, 3 runs: wall 5.44 s, of which the
measured dependency chain is 4.96 s = 91%, and 90.8% of that chain is parse.
Only 2.9 frames are runnable at any instant while 18 are in flight, so the
dispatcher cap is never the bound (48 threads on the 1080p cut: 4.0 running,
no wall gain). The filters are 5.0% of the chain -- which is exactly the
2.3% the pipelining lanes could recover.

Off, this is one `LazyLock<bool>` load per event at frame granularity: eight
gate hashes byte-identical at 1 and 16 threads, instructions:u +0.056%
(gate 0.05%, wall -0.5%).