aframe-fps-counter-component
A simple FPS counter component to measure performance in VR for A-Frame.
This component copies the FPS value from the stats
component panel and
displays using simple text component. It will display different colors if frame
rate drops below certain levels.
API
Property | Description | Default Value |
---|---|---|
enabled | Whether to show the counter. | true |
for90fps | Whether the colors indicate performance level for 90fps versus 60fps. For example, if for90fps , frame rates below 80fps will be shown as red. |
true |
Installation
Browser
Install and use by directly including the browser files:
My A-Frame Scene <!-- Attach to hand. -->
npm
Install via npm:
npm install aframe-fps-counter-component
Then require and use.
;;