The OccViewer.RenderingParams includes functionality for tracking rendering performance and displaying statistics, providing developers and users with valuable insights into the rendering process. This capability enhances debugging, optimization, and real-time monitoring.
The RenderingParams interface provides a property, toShowStats, that enables the display of detailed rendering statistics directly within the 3D viewer. When activated, this feature overlays performance metrics on the viewport, giving real-time feedback on rendering behavior.
Key Metrics:
Benefits of Rendering Statistics:
Helps identify rendering bottlenecks, such as complex geometries or high-resolution textures. Allows developers to track changes in performance when modifying scenes or parameters. Assists in balancing quality and performance by highlighting areas requiring optimization. Facilitates troubleshooting rendering issues by providing immediate feedback on rendering pipelines and resource usage.