tick() {
    this._frameCount++;
    let now = Date.now();
    if(now - this._lastTime >= 1000) {
      this._fps = this._frameCount / (now - this._lastTime) * 1000;
      this._frameCount = 0;
      this._lastTime = now;
    }
  }
/**
   * Increasements the FPS counter by 1 frame. If a second or more has passed,
   * then it will also update the frame rate reading.
   */
Increasements the FPS counter by 1 frame. If a second or more has passed,
then it will also update the frame rate reading.
Increasements the FPS counter by 1 frame . If a second or more has passed then it will also update the frame rate reading .
tick() {
    this._frameCount++;
    let now = Date.now();
    if(now - this._lastTime >= 1000) {
      this._fps = this._frameCount / (now - this._lastTime) * 1000;
      this._frameCount = 0;
      this._lastTime = now;
    }
  }
tick ( ) { this . _frameCount ++ ; let now = Date . now ( ) ; if ( now - this . _lastTime >= 1000 ) { this . _fps = this . _frameCount / ( now - this . _lastTime ) * 1000 ; this . _frameCount = 0 ; this . _lastTime = now ; } }
Increasements the FPS counter by 1 frame.
Increasements the FPS counter by 1 frame .