Creates a RenderInspector.
Optionalopts: {Whether the inspector is enabled.
Last computed fps per viewIndex (null until at least 2 frames end).
Aggregate render stats.
StaticrenderIDs of the render bins used internally by the WebGLRenderer.
Edges of opaque meshes rendered in normal color mode.
Triangle mesh edges rendered as transparent, normal color.
Meshes rendered in highlighted state as opaque, monochrome silhouettes.
Meshes rendered in highlighted state as transparent, monochrome silhouettes.
Meshes rendered as opaque, normal color.
Meshes rendered for picking (renders mesh IDs to pick buffer).
Meshes rendered in selected state as opaque, monochrome silhouettes.
Meshes rendered in selected state as transparent, monochrome silhouettes.
Meshes rendered as transparent, normal color.
Meshes rendered in X-rayed state as opaque, monochrome silhouettes (unusual).
Triangle mesh edges in X-rayed state rendered as transparent.
Meshes rendered in X-rayed state as transparent, monochrome silhouettes.
Meshes in X-rayed state rendered as transparent, monochrome silhouettes.
Gets the list of all render bin IDs.
Attaches a WebGL2 context to enable per-bin GPU timing.
Must be called once GL is available (RenderContext does this in init()).
No-ops when EXT_disjoint_timer_query_webgl2 is unavailable; per-bin
gpuTimeMs simply stays undefined.
Captures the next n frames' stats, waiting until every GPU query has
landed before resolving. Use to take a clean profile snapshot.
Enables the inspector for the duration of the capture; restores prior
enabled state on resolve.
Marks the end of the current frame for the currently active view.
Replaces frameLogs[viewIndex] each time.
Sets the list of render bins to exclude from rendering. When a render bin is in this list, it will not be rendered.
Sets the list of render bins to include in rendering. When this list is non-empty, only render bins in this list will be rendered.
Drops the GPU timer-query objects when the WebGL context is lost. They
belong to the dead context, so their references are simply discarded (no
deleteQuery); polling or reusing them would error against the restored
context.
Re-enables GPU timing after the context is restored: discards any query objects from the dead context and re-fetches the timer extension (extension handles do not survive a context loss).
Logs draw calls and their timings for performance analysis.
Public: