You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Viewer: show real decode progress, and say clearly when a model is too large for the browser #1195
Two improvements to how the browser viewer opens models: showing real progress, and handling models too large for the browser.
Checklist
Real progress. While a model decodes, the progress bar stays indeterminate and the loading card shows an "about N s" estimate from the file size, because the viewer cannot get progress from the decoder (viewer/src/main.ts, near DECODE_BYTES_PER_SECOND). Since feat(cli): rvt-gltf --progress, with saved-graphics stages in WalkerControl #1072 the decoder's WalkerControl reports progress stages for rvt-gltf --progress. Done when the wasm binding passes those stages through viewer/src/worker.ts to the page and the bar shows them, with the estimate kept as a fallback and the Playwright suite covering it.
Models too large for the browser. WebAssembly can address at most 4 GiB, and a model's decode needs about ten times its file size (Core Interior's 32 MiB file peaks at 324 MiB, feat(viewer): draw doors and windows from their saved meshes, with a toggle #1150). A model like the one behind Bug: models with a partition stream over 256 MiB open empty, with no error #1075 (a 1,057 MiB partition) can fail even after "Retry with large-model limits", and the browser reports only RuntimeError: unreachable. Done when the viewer tells the user plainly that the model is too large for the browser and points them to the CLI. The options for opening larger models (wasm64/memory64, streaming partitions, reading fewer streams) are measured and the choice documented.
Where to start
viewer/src/worker.ts, viewer/src/main.ts, rvt-wasm/src/lib.rs, docs/viewer-api.md, and viewer/tests/saved-meshes-measure.spec.ts, which measures wasm memory per model.
Item 2, the options: measured for three of six.docs/viewer-api.md lists the options for opening a larger model; its own words are that only the first three rows are measured and none is built. The choice it documents is the shipped one, say so and point to the CLI.
Still open, from the same page: on Core Interior the bar is determinate for about a tenth of an open, because the decoder reports nothing for the partition-schema recovery passes and the export's own passes (26.4 s of a 31.6 s open in load-progress.spec.ts). Reporting progress through those passes is the remaining part of "real progress", and a library change, not a viewer one.
Left open for those two: stage reports from the recovery and export passes, and measuring the three options the page only reads.
#2095 (merged) reports progress through the recovery over the element records, the remaining part of "real progress" from the note above. A new stage, partition-recovery (rvt::control::Stage::PartitionRecovery, printed by rvt-gltf --progress and passed to the viewer's progress function), counts the recovery's 86 steps once every partition stream is inflated, and the viewer's card shows it as "Reading element records" with its count, where it swept with "Building the model". On Core Interior the stretch after it no longer grows the wasm memory (308.1 MiB at the recovery's end and at the saved graphics' start, Deploy viewer 44488437867). No export changes: 65 of 65 exports and diagnostics identical (Measure 44493295189).
Left open here: measuring the three options for larger models that docs/viewer-api.md only reads (one copy of the file, streaming partitions, wasm64).
Activity
feat(viewer): the partition scan reports one step per stream, and the…
feat(viewer): the partition progress comes from the inflate, which ev…
fix(viewer): the too-large note sits above the empty state, and Revit…
fix(viewer): determinate-progress checks read the recorded reports, t…
fix(viewer): the load-progress test counts a report as the card does,…
fix(viewer): the failure tests serve the patched worker by route, sin…
test(viewer): the Core Interior screenshot is taken with the worker's…
fix(viewer): a failure after the large-model retry says nothing about…
feat(viewer): the loading card shows the decoder's own progress, and …
19 remaining items
DrunkOnJava commentedon Nov 15, 2026
Checked against
main(e594a2b) on 2026-11-15, what is left here:rvt-wasm/src/lib.rsforward_progress), the loading card shows them with the size estimate as the fallback, andviewer/tests/load-progress.spec.tscovers it (feat(viewer): the loading card shows the decoder's own progress, and a model too large for the tab says so (#1195) #1297).rvt-ifcandrvt-gltfwith--large-modeland to the Python package (viewer/src/main.ts, feat(viewer): the loading card shows the decoder's own progress, and a model too large for the tab says so (#1195) #1297).docs/viewer-api.mdlists the options for opening a larger model; its own words are that only the first three rows are measured and none is built. The choice it documents is the shipped one, say so and point to the CLI.load-progress.spec.ts). Reporting progress through those passes is the remaining part of "real progress", and a library change, not a viewer one.Left open for those two: stage reports from the recovery and export passes, and measuring the three options the page only reads.
test(viewer): the memory-ceiling stops name the recovery step the dec…
fix(control): the recovery's progress keeps the handle Freeze, so the…
feat(control): the progress an open reports covers the recovery over …
DrunkOnJava commentedon Nov 19, 2026
#2095 (merged) reports progress through the recovery over the element records, the remaining part of "real progress" from the note above. A new stage,
partition-recovery(rvt::control::Stage::PartitionRecovery, printed byrvt-gltf --progressand passed to the viewer'sprogressfunction), counts the recovery's 86 steps once every partition stream is inflated, and the viewer's card shows it as "Reading element records" with its count, where it swept with "Building the model". On Core Interior the stretch after it no longer grows the wasm memory (308.1 MiB at the recovery's end and at the saved graphics' start, Deploy viewer 44488437867). No export changes: 65 of 65 exports and diagnostics identical (Measure 44493295189).Left open here: measuring the three options for larger models that
docs/viewer-api.mdonly reads (one copy of the file, streaming partitions, wasm64).docs: the rooms table is today's run, and the demos, library, MCP, fo…