Skip to content
Darsain edited this page Apr 10, 2013 · 1 revision

FPSMeter object exposes some useful properties. Assuming:

var meter = new FPSMeter();

Properties


meter.options

Type: Object

Object with options used by the current FPSMeter object. This is essentially a FPSMeter.defaults object extended by options passed to new FPSMeter().

Do not modify this object, use the .set() method instead.

meter.fps

Type: Float

Always current smoothed out FPS value.

meter.duration

Type: Float

Always current smoothed out frame rendering duration in milliseconds.

meter.isPaused

Type: Boolean

Whether the meter rendering is paused. This is true when you .hide() or .pause() the FPSMeter.

Clone this wiki locally