Skip to content

Refine instanced orbit detail when frame time allows - #69

Merged
mahach666 merged 2 commits into
mainfrom
codex/instanced-orbit-detail
Nov 18, 2026
Merged

mahach666 merged 2 commits into
mainfrom
codex/instanced-orbit-detail

Conversation

@mahach666

@mahach666 mahach666 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Changes

  • Select the screen-size cutoff per instance and compact instanced cells when the surviving slots have gaps. Restore full detail at rest and preserve picking IDs and transforms.
  • Start motion with cell detail. Try per-instance selection after 20 consecutive moving frames with measured headroom, and return to cell detail after a slow frame. The triangle-budget controller is shared by both paths.
  • Add GPU and controller regressions, document the measurements and rebuild the offline bundle.

Adaptive orbit on 400,000 elements

Four paired trials per GPU used the exact viewer from main at 4288013 and the updated viewer over identical exported geometry. The runs alternated file order.

GPU Main median p95 PR median p95 Main median submitted triangles PR median submitted triangles
Radeon 33.5 ms 33.5 ms 11.11 M 12.36 M
RTX 4080 33.3 ms 25.1 ms 38.40 M 38.40 M

The Radeon runs stayed on cell detail. Two RTX runs used one refined frame each. The revised policy preserves the measured frame-time target under load.

Verification

  • Reproducible viewer bundle, Release solution build and DocFX with warnings as errors.

  • 162 JavaScript tests, including sustained headroom, fallback after a slow frame and the instance render path.

  • 201 browser tests each on Windows and Linux, and 176 tests each on .NET 8 and .NET 10.

  • On Schependomlaan IFC and racbasicsampleproject RVT, picking and restored full detail matched on 64 checked frames across merged and instanced rendering, both projections and wireframe.

Refs #12

@mahach666
mahach666 merged commit 6b739a1 into main Nov 18, 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