MRStatsEntity

MRStatsEntity ⇐ MRTextEntity

The FPS counter entity. For simplicity, easy implementation, and good performance, it is based on MRTextEntity and just shows the FPS counter number as text for now. Ideally we want to improve later, like improving the visual quality and more info. Note that stats entity that has a huge bad performance impact doesn’t really make sense so it should be kept simple and fast.

Kind: global class
Extends: MRTextEntity

mrStatsEntity.MRStatsEntity

Kind: instance class of MRStatsEntity

new exports.MRStatsEntity()

Constructor for the MRStatsEntity object. Initializes some variables used to track and calculate the fps.