Skip to main content

3D Tiles runtime / diagnostics

Tune the runtime in layers.

When a tileset looks slow, blurry, or memory-hungry, inspect the measurements before changing options. This guide gives a sequence that keeps cause and effect visible.

A practical tuning loop

Change one layer, then inspect the frame.

Start with the final visual quality target. Only after that should you tune initial coverage, request timing, concurrency, and byte budgets.

Quality

Choose maximumScreenSpaceError for a still camera.

Responsiveness

Tune progressive and foveated request behavior.

Capacity

Match maxRequests and decode work to the device.

Evidence

Read tile fields, source stats, and cache pressure together.

Detailed guide

Measurements and tuning details

The detailed guide maps runtime controls to observable tile fields, statistics, and common symptoms.

Tune 3D Tiles in layers: establish the desired final LOD, then improve how quickly useful coverage arrives, then size request and memory resources. Changing several layers together makes symptoms harder to explain.

  1. Hold the camera still and choose maximumScreenSpaceError for acceptable final quality.
  2. Use viewDistanceScale only if a global multiplier is more convenient than changing the threshold.
  3. Tune progressiveResolutionHeightFraction for initial broad coverage.
  4. Tune foveatedConeSize, relaxation, and foveatedTimeDelay for interaction.
  5. Tune maxRequests for network and decode capacity.
  6. Tune byte-native cacheBytes and maximumCacheOverflowBytes; memory-adjusted SSE is enabled by default.

What to Inspect​

Useful Tile3D fields include:

FieldDiagnostic meaning
lodMetricValueWorld-space geometric error after transform scaling for 3D Tiles.
distanceToCameraBounding-volume distance used by perspective SSE.
screenSpaceErrorMost recently calculated final-LOD SSE.
selectedWhether content contributes to the current frame.
refineADD or REPLACE continuity semantics.
_priorityProgressiveResolutionWhether the tile belongs to the coarse-coverage band.
priorityDeferredWhether motion deferral currently holds the request, including its active time window.
_foveatedFactorUnitless distance from the perspective forward view ray.
_priorityCombined scheduler priority; smaller starts first.
childrenStateLazy hierarchy lifecycle: unloaded, loading, ready, or failed.
hasUnloadedChildrenWhether traversal may request a lazy subtree at this tile.

The underscored fields are runtime diagnostics, not stable public API. Prefer callbacks and stats for application behavior. Tileset3D.stats exposes tiles loading, loaded, in memory, in view, renderable, failed, estimated GPU memory, and the current maximum SSE.

For an implicit source, Tiles3DSource.getImplicitTilingStats() separates subtree resource requests, parsed-cache hits, pending subtrees, and materialized header counts from tile-content and GPU-memory stats. A high pendingSubtrees count with no render-content traffic points to hierarchy intake; high materializedTiles with low cachedSubtrees means the parsed LRU is bounded but the camera has explored a broad runtime hierarchy. See Implicit tiling and lazy subtrees.

Troubleshooting​

SymptomLikely causeInspect or change
Final view stays coarseHigh SSE threshold, low viewDistanceScale, missing children, or memory-adjusted SSE.Compare tile SSE with the active maximum; inspect load failures and descendants.
Too many tiles loadLow threshold or high distance scale.Raise maximumScreenSpaceError; monitor memory and requests.
Empty regions during replacementRequired children failed or application code removed safe ancestors.Inspect REPLACE child loads and onTileError; traditional children are not motion-deferred.
Fine detail starts before broad coverageProgressive priority is disabled or the root already satisfies reduced-height SSE.Use a fraction in (0, 0.5]; inspect the error hierarchy.
Center is not faster than edgesFoveation disabled, cone too large, orthographic projection, or few competing requests.Check foveated options, projection, maxRequests, and priority fields.
Periphery recovers slowlyDelay or relaxation is too aggressive.Reduce foveatedTimeDelay, enlarge the cone, or reduce relaxation.
Requests never recover after motionTraversal is frozen or tileset was destroyed.Keep loadTiles enabled; the runtime otherwise schedules one expiry traversal.
Orthographic LOD or progressive pass looks wrongInvalid metersPerPixel or physical/logical pixel mixing.Supply a positive finite logical-pixel scale.
High-DPI displays choose different LODCustom viewport applied DPR a second time.Use CSS/logical dimensions with no additional DPR factor.
Scaled tiles under-refineWorld transform was not applied to geometric error.Inspect lodMetricValue and the composed model/tile transforms.
Memory exceeds cacheBytesCurrent-frame working set is larger than the soft eviction target.Compare usage with the base-plus-overflow ceiling; raise a budget, raise SSE, or keep memory-adjusted SSE enabled.
Many queued requests but low throughputRequest throttling or upstream fetch limits.Inspect maxRequests, browser connection limits, and loader worker concurrency.

Multi-Viewport Behavior​

Traversal and camera-motion state are retained per viewport. Selected and requested tiles from traversed viewports are combined before loading and cache eviction. A moving viewport can therefore reprioritize its peripheral work without falsely marking a stationary viewport as moving. Shared content still benefits from the common cache.

Projection Changes​

Perspective foveation requires a perspective field of view. Orthographic traversal uses metersPerPixel for SSE and progressive priority, but disables angular foveation. When an orthographic viewport lacks a valid scale, SSE falls back to the perspective-compatible formula; inspect viewport fields when changing projection at runtime.

Return to the 3D Tiles runtime concepts overview.