title | type | layout | parent_section | source_code |
---|---|---|---|---|
stats |
components |
docs |
components |
src/components/scene/stats.js |
The stats component displays a UI with performance-related metrics. The stats
component applies only to the <a-scene>
element.
<a-scene stats></a-scene>
- fps: frames per second, framerate. Aim for stable 90 fps with the WebVR 1.0 API.
- requestAnimationFrame (raf): Latency.
- Textures: number of three.js textures in the scene. A lower count means the scene is using less memory and sending less data to the GPU.
- Programs: number of GLSL shaders in the scene.
- Geometries: number of three.js geometries in the scene. A lower count means the scene is using less memory.
- Vertices: number of vertices in the scene.
- Faces: number of faces in the scene.
- Calls: number of draw calls on each frame.
- Load Time: how long it took for the scene to start rendering, in ms.
- Entities: number of A-Frame entities.
Click or tap on the headings to collapse groups of metrics. If you tap
"Framerate", then fps
and raf
will collapse.