Files
metal2vulkan/docs
Anees Iqbal 61f2799088 replay: --until-frame, frame lines as each frame ends, and the rt backend's unwritten line
A play that hangs (gb's fault at frame 1095, b2's at 312) wrote no report: report.txt got its frame
and end lines only at the play's end, so every hung play left 0 frames in its timing table, and the
cold and warm plays of the frames before each fault could not be read.

- Player::until_frame(F) stops after frame F's present (frames counted from 0 as Report::frames
  counts them), completes the work committed so far and reports as at the stream's end;
  command-replay's --until-frame F sets it and says `until-frame F`.
- Player::with_frame_lines(out) writes each frame's lines (Report::frame_lines: its frame and end
  lines) to out as the frame ends, flushed; command-replay passes its open report.txt and writes
  the rest at the end (Report::lines_but_frames). Report::lines keeps every line, the completed
  groups' first.
- The rt backend's report gets an `unwritten N` line: the Shared buffers made without bytes that a
  compute encoder bound or used and whose command buffer committed before any recorded write,
  upload or GPU pass reached their bytes since their making, with the first few named and the
  command buffer that read each. It is where a recording that missed the program's writes shows
  (b2's uniform ring #58725 had no recorded byte in its life). What reaches a buffer: an m2v.write
  into it, into its block over it or into another buffer of the block over it; a blit or render
  encoder call naming it or such a buffer (skipped encoders included); the commit of a dispatch
  binding it. It counts and stops nothing (new_runtime/unwritten.rs, hooks in the make paths,
  write, release, the encoder calls and the commit).

REPLAY-STREAM.md section 10 documents --until-frame, the per-frame lines and the unwritten line.
Verified: replay tests for the frame stop and the per-frame lines (Kept backend) and for the
unwritten count (the tracker alone: block writes, a blit naming, a write before the commit, a
release, a later commit, an alias made later); clippy and the device plays in the check job.
2026-11-18 00:16:31 -08:00
..