Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FPSCounter

namespace

FPSCounter

class

FPSCounter Get information about the device's framerate.

Hierarchy

  • FPSCounter

Index

Constructors

Properties

Constructors

constructor

Properties

Private _fpsEmitter

_fpsEmitter: any

fps

fps: number

The device's current FPS, to get a realtime reading get this value from a setInterval() function.

Example:

const fpscounter = new FPSCounter();

// Log the current FPS to the console every 500ms.
setInterval(() => {
 console.log(`The current FPS is ${fpscounter.fps}FPS`)
}, 500);
// Example log could be: 'The current FPS is 60FPS'

Generated using TypeDoc