INNER CODE UNIT · JavaScript

fps

hyperfy-xyz/hyperfy · src/core/libs/stats-gl/index.js:342

      const fps = (this.frames * 1000) / (time - this.prevTime)

      this.fpsPanel.update(fps, fps, 100, 100, 0)

      this.prevTime = time
      this.frames = 0
    }

    return time
  }

  addToAverage(value, averageArray) {
    averageArray.logs.push(value)
    if (averageArray.logs.length > this.samplesLog) {
      averageArray.logs.shift()
    }

    averageArray.graph.push(value)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…