The seat remembers a window that would not open, the memo does not
Browse files at this commit7cb30bf3c8f789c839dad16c2b013c15ecab4fa2Parent: b05e9ee- docs
- the seat remembers a window that would not open, the memo does not
1 changed file +7 -4
crates/engine/src/waveform.rsmodified+7 -4
| @@ -392,10 +392,13 @@ impl VizWindows { | ||
| 392 | 392 | return crate::decode::VizView::window(&[], first, total, self.summary.peak); |
| 393 | 393 | } |
| 394 | 394 | if self.current.as_ref().map(|(at, _)| *at) != Some(first) { |
| 395 | - // A window that will not open keeps the frame's own silence and is | |
| 396 | - // *not* remembered as the window: the next frame asks again, and a | |
| 397 | - // source that comes back (a share remounting, a file finishing its | |
| 398 | - // write) paints again. | |
| 395 | + // A window that will not open keeps the frame's own silence for the | |
| 396 | + // rest of it: the seat is what remembers that, and only while it is | |
| 397 | + // painting in this window -- the memo keeps successes only, so the | |
| 398 | + // next seek (and the next window) asks the file again, and a source | |
| 399 | + // that comes back (a share remounting, a file finishing its write) | |
| 400 | + // paints again. Re-asking every frame instead would hammer a file | |
| 401 | + // that is not there thirty times a second. | |
| 399 | 402 | let window = viz_window( |
| 400 | 403 | &self.key, |
| 401 | 404 | self.summary.sample_rate, |