Skip to content

Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.

Defer startup workspace checks until the page is visible

Bowen Xue25a9ca24154b
diff --git a/docs/community-results.md b/docs/community-results.md
index e149f0f..1b6e816 100644
--- a/docs/community-results.md
+++ b/docs/community-results.md
@@ -48,6 +48,10 @@ Thanks to the community members who sent diagnostic reports. FreeVideo already r
| 5060 | 8 GB | 32 GB | 1344×768 | 10 s | Light | 0.3.23 | 1279 s | 0.3.25 | 1150 s (−130 s) |
| 3060 | 12 GB | 32 GB | 832×1248 | 10 s | Light | 0.3.24 | 1668 s | 0.3.24 | GPU shared⁷ |
| 5080 | 16 GB | 64 GB | 1344×768 | 10 s | Light | 0.3.24 | 312 s | 0.3.24 | 278 s (−34 s) |
+| 4070 Ti SUPER | 16 GB | 96 GB | 1344×768 | 10 s | Light | 0.3.24 | 575 s | 0.3.24 | Already optimal |
+| 4080 Laptop | 12 GB | 32 GB | 1344×768 | 10 s | Light | 0.3.24 | 970 s | 0.3.24 | Already optimal |
+| 4060 Laptop | 8 GB | 32 GB | 768×1344 | 6.6 s | Light⁵ | 0.3.24 | 386 s | 0.3.24 | Already optimal |
+| 5060 Ti | 16 GB | 32 GB | 768×1344 | 15.1 s | Light | 0.3.24 | 847 s | 0.3.24 | Already optimal |
- Time: end to end, from submission until the video is saved.
- After: the estimated time, derived from the report's stage times and from complete planned runs on our test machines (RTX 3090 and RTX 5060 Ti on Windows, RTX PRO 6000 on Linux) under the reporting machine's VRAM and RAM limits, not from reruns on that machine.
diff --git a/docs/zh-CN/community-results.md b/docs/zh-CN/community-results.md
index 619b883..dac1872 100644
--- a/docs/zh-CN/community-results.md
+++ b/docs/zh-CN/community-results.md
@@ -48,6 +48,10 @@
| 5060 | 8 GB | 32 GB | 1344×768 | 10 s | 轻⁠量 | 0.3.23 | 1279 s | 0.3.25 | 1150 s⁠(−130 s⁠) |
| 3060 | 12 GB | 32 GB | 832×1248 | 10 s | 轻⁠量 | 0.3.24 | 1668 s | 0.3.24 | 显⁠卡⁠被⁠占⁠用⁷ |
| 5080 | 16 GB | 64 GB | 1344×768 | 10 s | 轻⁠量 | 0.3.24 | 312 s | 0.3.24 | 278 s⁠(−34 s⁠) |
+| 4070 Ti SUPER | 16 GB | 96 GB | 1344×768 | 10 s | 轻⁠量 | 0.3.24 | 575 s | 0.3.24 | 已⁠是⁠最⁠优 |
+| 4080 笔⁠记⁠本 | 12 GB | 32 GB | 1344×768 | 10 s | 轻⁠量 | 0.3.24 | 970 s | 0.3.24 | 已⁠是⁠最⁠优 |
+| 4060 笔⁠记⁠本 | 8 GB | 32 GB | 768×1344 | 6.6 s | 轻⁠量⁵ | 0.3.24 | 386 s | 0.3.24 | 已⁠是⁠最⁠优 |
+| 5060 Ti | 16 GB | 32 GB | 768×1344 | 15.1 s | 轻⁠量 | 0.3.24 | 847 s | 0.3.24 | 已⁠是⁠最⁠优 |
- 用时:从提交到视频保存完成的端到端用时。
- 优化后:预估用时,根据报告中的分段用时,结合测试机(Windows RTX 3090 和 RTX 5060 Ti、Linux RTX PRO 6000)在报告机器的显存和内存上限下运行完整规划的实测推算,不是在报告机器上重跑。
diff --git a/web/health.js b/web/health.js
index 04746f7..9740fdb 100644
--- a/web/health.js
+++ b/web/health.js
@@ -20,6 +20,23 @@ export const MODULES = ['agent_activity.js', 'agent_connect.js', 'agent_session.
'result_actions.js', 'sampling_effort.js', 'setup.js', 'share.js', 'share_layout.js', 'studio.js', 'studio_queue.js', 'studio_size.js',
'toolbar_position.js', 'updates.js', 'view_navigation.js', 'wordmark.js'];
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));
+let visibleAt = 0;
+async function waitForVisible() {
+ for (;;) {
+ if (document.hidden) await new Promise(resolve => {
+ const visible = () => {
+ if (document.hidden) return;
+ document.removeEventListener('visibilitychange', visible);
+ resolve();
+ };
+ document.addEventListener('visibilitychange', visible);
+ });
+ // Let the animation frame that opens the workspace run first.
+ const remaining = 1500 - (Date.now() - visibleAt);
+ if (remaining > 0) { await sleep(remaining); continue; }
+ if (!document.hidden) return;
+ }
+}
// A file the browser failed to load stays failed for the page's lifetime even
// once the server sends it again, and a plain reload can take the same broken
// copy from the HTTP cache. So when every script is reachable but some would
@@ -546,6 +563,7 @@ function send(state, problems) {
// Kept with diagnostic reports, so a report from this computer names the cause.
// 'loading' tells ComfyUI this page runs FreeVideo's scripts before the check ends.
latest = {state, problems};
+ if (state === 'error' && document.hidden) return;
const body = JSON.stringify({state, problems: problems.map(p => p.text), errors: seen.map(row => `[${row.kind}] ${row.text}`),
ready: !!window.FreeVideoUI?.ready, launch: launchVisit, view: preferredView() || '',
agent: navigator.userAgent, frontend: String(window.__COMFYUI_FRONTEND_VERSION__ || ''), page: location.pathname,
@@ -555,6 +573,13 @@ function send(state, problems) {
fetch(new URL('../../api/freevideo/launcher/ui', base), {method: 'POST', headers: {'Content-Type': 'application/json'}, body, keepalive: true})
.catch(() => { /* An older or stopped server; the card on the page still shows the problem. */ });
}
+document.addEventListener('visibilitychange', async () => {
+ if (document.hidden) return;
+ visibleAt = Date.now();
+ if (latest?.state !== 'error') return;
+ await waitForVisible();
+ if (!document.hidden && latest?.state === 'error') send(latest.state, latest.problems);
+});
async function check() {
[extensionUI, errorUI] = await Promise.all([import('./browser_extension.js').catch(() => null),
@@ -581,13 +606,12 @@ async function check() {
}
if (!ui.ready && !problems.length) problems.push({text: t('FreeVideo’s scripts loaded, but ComfyUI did not start them.', 'FreeVideo 的脚本已下载,但 ComfyUI 没有启动它们。'), advice: 'reload'});
if (!problems.length) problems.push(...await diagnoseStyles());
+ let checkStudio = false;
if (launchVisit && !problems.length) {
if (!launched) problems.push({text: t('The FreeVideo workflow did not open: launcher.js did not report back.', 'FreeVideo 工作流没有打开:launcher.js 没有响应。'), advice: 'reload'});
else if (launched.error) problems.push(reportText(launched));
else if (!studioWorkflow(app.graph)) problems.push({text: t('ComfyUI shows another workflow; the FreeVideo workflow is in another tab.', 'ComfyUI 显示的是另一个工作流,FreeVideo 工作流在别的标签页里。'), advice: 'relaunch'});
- else if (preferredView() !== 'nodes' && !document.querySelector('dialog.fv-studio[open]')
- && !reports.some(item => item.type === 'error' && item.where === 'studio'))
- problems.push({text: t('The creative workspace did not open.', '创作面板没有打开。'), advice: 'reload'});
+ else checkStudio = true;
}
for (const item of reports) if (item.type === 'error') problems.push(reportText(item));
const copies = await freevideoFolders();
@@ -596,18 +620,29 @@ async function check() {
problems.push({text: copies.length > 1 ? t(`ComfyUI loaded FreeVideo more than once: ${named}.`, `ComfyUI 加载了多份 FreeVideo:${named}。`)
: t('ComfyUI loaded FreeVideo more than once.', 'ComfyUI 加载了多份 FreeVideo。'), advice: 'duplicate'});
}
- if (problems.length) {
- problems.push(...pluginErrors());
- show(distinct(problems)); send('error', distinct(problems));
- } else {
- send('ready', []);
- }
// Later failures, such as the workspace failing to open from a node.
listener = item => {
if (item.type !== 'error') return;
const problems = distinct([...lastProblems, reportText(item)]);
show(problems); send('error', problems);
};
+ if (document.hidden && problems.length) {
+ // File and extension diagnostics still run at startup. Only their
+ // launcher error status waits for the page to become visible.
+ const found = distinct([...problems, ...pluginErrors()]);
+ show(found); send('error', found);
+ }
+ await waitForVisible();
+ if (checkStudio && studioWorkflow(app.graph) && preferredView() !== 'nodes' && !document.querySelector('dialog.fv-studio[open]')
+ && !reports.some(item => item.type === 'error' && item.where === 'studio'))
+ problems.unshift({text: t('The creative workspace did not open.', '创作面板没有打开。'), advice: 'reload'});
+ problems.push(...lastProblems);
+ if (problems.length) {
+ problems.push(...pluginErrors());
+ show(distinct(problems)); send('error', distinct(problems));
+ } else {
+ send('ready', []);
+ }
watchWorkspace(app).catch(error => consoleError.call(console, '[FreeVideo] Workspace check failed:', error));
}