Properties

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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.