Class: FpsMeter

html.FpsMeter

Class representing a frames-per-second counter.

new html.FpsMeter ()

Properties:
Name Type Description
fps number

[readonly] The current frame rate.

manual bool

(default: false) If true, you have to call the takeFrame() method manually for every frame to measure.

running bool

(default: false) Whether the frame rate should be measured.

Extends

Methods

takeFrame ()

Takes a frame during manual frame counting, i.e. when the property manual is set to true. Every frame that shall be counted must invoke this method during manual frame counting.