Skip to content

Reuse exact repeated meshes in the streaming viewer - #78

Merged
mahach666 merged 2 commits into
mainfrom
codex/streamed-mesh-instances
Nov 20, 2026
Merged

mahach666 merged 2 commits into
mainfrom
codex/streamed-mesh-instances

Conversation

@mahach666

@mahach666 mahach666 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Reuse source geometry by identity and compare distinct meshes exactly before rounding. Each instance keeps its placement, material and element metadata.
  • Store mesh templates in a separate byte-range archive and draw placements in spatial batches with GPU instancing. Preserve the existing LOD hierarchy contract, picking, visibility, clipping, measurement and legacy package support.
  • Add coverage for sub-float differences in source geometry, winding, normals and UVs, and for independent rendering, picking, visibility and snapping.
  • Fall back to ordinary world-space vertices when template placement would exceed the viewer's existing precision bound.

Verification

  • 181 JS unit tests and 199 .NET tests per runtime passed locally, including a real RVT input. The browser suite covers Chromium and Firefox, and the streaming-specific tests were also run separately in Firefox.
  • With the same exports, geometry binaries shrank from 594.7 to 586.0 MB for IFC and 297.4 to 279.3 MB for RVT. Frame interval p95 was 16.8 ms for both variants. Peak page buffers changed from 90.4 to 98.1 MiB for IFC and from 107.5 to 91.6 MiB for RVT.
  • Tested real IFC/RVT selection and properties on instanced leaves and legacy navigation on the 14.85 GB federation.

@mahach666
mahach666 merged commit 322554d into main Nov 20, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant