From 7cb30bf3c8f789c839dad16c2b013c15ecab4fa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Thu, 24 Sep 2026 13:52:40 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs(engine):=20the=20seat=20rem?= =?UTF-8?q?embers=20a=20window=20that=20would=20not=20open,=20the=20memo?= =?UTF-8?q?=20does=20not?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The comment claimed the opposite of what the code does: a window that fails to decode is latched in the seat's own handle -- as an empty slice, for as long as it paints in that window -- precisely so a file that is not there is not asked thirty times a second. The memo still keeps successes only, so the next window and the next seek ask again. Comment only; no behaviour changed. --- crates/engine/src/waveform.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/crates/engine/src/waveform.rs b/crates/engine/src/waveform.rs index 385191d..0b3e527 100644 --- a/crates/engine/src/waveform.rs +++ b/crates/engine/src/waveform.rs @@ -392,10 +392,13 @@ impl VizWindows { return crate::decode::VizView::window(&[], first, total, self.summary.peak); } if self.current.as_ref().map(|(at, _)| *at) != Some(first) { - // A window that will not open keeps the frame's own silence and is - // *not* remembered as the window: the next frame asks again, and a - // source that comes back (a share remounting, a file finishing its - // write) paints again. + // A window that will not open keeps the frame's own silence for the + // rest of it: the seat is what remembers that, and only while it is + // painting in this window -- the memo keeps successes only, so the + // next seek (and the next window) asks the file again, and a source + // that comes back (a share remounting, a file finishing its write) + // paints again. Re-asking every frame instead would hammer a file + // that is not there thirty times a second. let window = viz_window( &self.key, self.summary.sample_rate,