Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 8ec6fc0e76aebcbf9028d3f7a52958c21367490a
parent 7ed946539855439507bf6187552fd3de7d3b615b
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Fri, 23 Oct 2026 19:50:22 -0400

umtool render: UMTOOL_CHROME_WORKERS also raises the 2-worker chrome regions (default 2)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Mumtool/report-to-video/build-video.mjs | 15+++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/umtool/report-to-video/build-video.mjs b/umtool/report-to-video/build-video.mjs @@ -226,6 +226,9 @@ const FFMPEG = process.env.FFMPEG_BIN ?? "ffmpeg"; // render on an idle 8-core machine is capture-bound, and 4 leaves cores idle. // UMTOOL_CHROME_WORKERS raises it for one run; absent, 4 as before. const CHROME_WORKERS = Math.max(1, Math.min(16, Number(process.env.UMTOOL_CHROME_WORKERS) || 4)); +// The 2-worker regions (posts, finale, stamps, stats, threads, flips): the same +// knob raises them too when it is set; absent, 2 as before. +const CHROME_WORKERS_SMALL = process.env.UMTOOL_CHROME_WORKERS ? CHROME_WORKERS : 2; const FFPROBE = process.env.FFPROBE_BIN ?? "ffprobe"; const QRENCODE = process.env.QRENCODE_BIN ?? "qrencode"; @@ -4773,7 +4776,7 @@ async function renderDeck({ manifestPath, render, outDir, variant, schedule, fro const t1 = Date.now(); const p = await composeChrome({ manifestPath, outDir, variant, region: "posts", window: pr.window, doRender: true, - fps: render.fps, workers: 2, quality: "high", format: "png-sequence", + fps: render.fps, workers: CHROME_WORKERS_SMALL, quality: "high", format: "png-sequence", }); if (p.frames !== pr.frames || p.frameCount !== pr.frameCount) { throw new Error( @@ -4799,7 +4802,7 @@ async function renderDeck({ manifestPath, render, outDir, variant, schedule, fro const t1 = Date.now(); const st = await composeChrome({ manifestPath, outDir, variant, region: "stamp", doRender: true, - fps: render.fps, workers: 2, quality: "high", format: "png-sequence", + fps: render.fps, workers: CHROME_WORKERS_SMALL, quality: "high", format: "png-sequence", ...(duration != null ? { from, duration } : {}), }); if (st.frameCount !== want) { @@ -4821,7 +4824,7 @@ async function renderDeck({ manifestPath, render, outDir, variant, schedule, fro const t1 = Date.now(); const sr = await composeChrome({ manifestPath, outDir, variant, region: "stats", doRender: true, - fps: render.fps, workers: 2, quality: "high", format: "png-sequence", + fps: render.fps, workers: CHROME_WORKERS_SMALL, quality: "high", format: "png-sequence", ...(duration != null ? { from, duration } : {}), }); if (sr.frameCount !== want) { @@ -4864,7 +4867,7 @@ async function renderDeck({ manifestPath, render, outDir, variant, schedule, fro const t1 = Date.now(); const th = await composeChrome({ manifestPath, outDir, variant, region: "threads", doRender: true, - fps: render.fps, workers: 2, quality: "high", format: "png-sequence", + fps: render.fps, workers: CHROME_WORKERS_SMALL, quality: "high", format: "png-sequence", ...(duration != null ? { from, duration } : {}), }); if (th.frameCount !== want) { @@ -4884,7 +4887,7 @@ async function renderDeck({ manifestPath, render, outDir, variant, schedule, fro const t1 = Date.now(); const fl = await composeChrome({ manifestPath, outDir, variant, region: "flips", doRender: true, - fps: render.fps, workers: 2, quality: "high", format: "png-sequence", + fps: render.fps, workers: CHROME_WORKERS_SMALL, quality: "high", format: "png-sequence", ...(duration != null ? { from, duration } : {}), }); if (fl.frameCount !== want) { @@ -4907,7 +4910,7 @@ async function renderDeck({ manifestPath, render, outDir, variant, schedule, fro const t1 = Date.now(); const p = await composeChrome({ manifestPath, outDir, variant, region: "finale", doRender: true, - fps: render.fps, workers: 2, quality: "high", format: "png-sequence", + fps: render.fps, workers: CHROME_WORKERS_SMALL, quality: "high", format: "png-sequence", }); if (p.frames !== fr.frames || p.frameCount !== fr.frameCount) { throw new Error(`the finale rendered ${p.frameCount} frames to ${p.frames}; the overlay expects ${fr.frameCount} at ${fr.frames}`);