const loop = function()

in src/utils/getFps.ts [12:26]


  const loop = function() {
    const offset = Date.now() - last;
    fps += 1;

    if (offset >= 1000) {
      last += offset;
      callback(fps);
      if (maxCount) count += 1;
      fps = 0;
    }

    if (!maxCount || count <= maxCount) {
      requestAnimationFrame(loop);
    }
  };