StatsSystem
MRSystem
StatsSystem ⇐ Track the elapsed time across frames and update the fps counter periodically for mr-stats
.
Kind: global class
Extends: MRSystem
- StatsSystem ⇐
MRSystem
statsSystem.StatsSystem
Kind: instance class of StatsSystem
new exports.StatsSystem()
StatsSystem’s default constructor
statsSystem.onNewEntity(entity)
Registers MRStatsEntity
Kind: instance method of StatsSystem
Param | Type | Description |
---|---|---|
entity | MREntity |
given entity that might be handled by this system |
statsSystem.update(deltaTime)
Tracks the elapsed time and updates the fps counter periodically.
Kind: instance method of StatsSystem
Param | Type | Description |
---|---|---|
deltaTime | number |
the time elapsed since the last update call |