Skip to content

Large models: per-instance detail and picking inside instanced cells #12

Closed

Description

@mahach666

Above the 384 MiB merged-geometry cap, repeated shapes are drawn as instanced copies in spatially bounded cells (#8). Measured on an integrated 2-CU AMD GPU with 1 000 000 elements, compared with the earlier one-draw-per-instance renderer:

  • orbit 95th percentile 20 fps (was 29.9);
  • pick ~22 ms (was ~7 ms);
  • still-frame CPU time 23 ms (was 4 ms).

Causes: detail is cut per cell from the cell's nearest point (so all instances of one shape in a cell share one size estimate), each InstancedMesh draw costs ~5 µs of CPU in three.js + ANGLE, and the cell extent is relative to the whole-model diagonal, so a single far georeferencing outlier makes cells unbounded again.

Ideas:

  • cull and cut detail per instance inside a cell (CPU-side instance spheres, compacted instance list);
  • bound cells by an absolute extent or by robust model statistics instead of the full diagonal;
  • reduce per-draw CPU cost (fewer, larger units where it is safe).

Models below the cap (all merged; e.g. 200 000 elements / 19.2 M triangles) are not affected: 30 fps at full detail on the same GPU.

Activity

  1. added
    enhancement
    on Nov 11, 2026
  2. mahach666 commented on Nov 18, 2026

    @mahach666
    ContributorAuthor

    One experiment for the picking part of this issue: compare the current GPU ID/depth pass and synchronous pixel readback with a CPU ray query over the existing chunk and instance bounds. Open BIM Suite skips blocks of 256 triangles by their bounds before testing the remaining candidates. For IOViewer, start from its existing spatial cells and shared geometry and test whether narrowing before triangle intersection improves cache-miss picks.

    Use the same sample pixels and camera on the large instanced case and a merged control. Record median and p95 pick latency, index build cost and extra memory alongside the reference runs in #43. Require equivalent nearest hits for hidden and clipped geometry, both projections and transformed instances. The same experiment can inform the hover budget in #40.

    Open BIM Suite CPU pick index · IOViewer GPU picker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions