Skip to content

Commit f72b2d4

Browse files
committed
fix(render): trim streamingCaptureProgress doc comment to keep shared.ts comment share down
The Comments workflow ratchet fails when a changed source file gains comment lines and its comment share rises: shared.ts went 17.9% (128/715) to 18.4% (134/729) on the 7-line doc block for the new helper. Condense it to one line keeping the why (encoding is fused into capture); share returns to 17.9% (129/722), under the base.
1 parent e16188e commit f72b2d4

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

  • packages/producer/src/services/render

‎packages/producer/src/services/render/shared.ts‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -309,14 +309,7 @@ function reportThrottled(
309309
updateJobStatus(job, status, stage, progress, due ? onProgress : undefined, stageProgress);
310310
}
311311

312-
/**
313-
* Streaming capture spans 25% to 90%: frames are encoded into the streaming
314-
* encoder as they are written, so encoding is already inside capture — the
315-
* 80-90 encode band from the disk path is empty here, and assemble takes
316-
* 90-99. The disk path keeps its own 25-70 band plus a separate encode phase
317-
* (see captureStage.ts), so this helper must only be used by the streaming
318-
* capture paths (streaming, segmented, HDR loops).
319-
*/
312+
// Streaming capture spans 25-90%: encoding is fused into capture; assemble takes 90-99.
320313
export function streamingCaptureProgress(done: number, total: number): number {
321314
if (total <= 0) return 25;
322315
const frames = Math.min(Math.max(done, 0), total);

0 commit comments

Comments
 (0)