q5play
    Preparing search index...

    Function getFPS

    • 💻 Gets the current FPS, in terms of how many frames could be generated in one second, which can be higher than the target frame rate.

      Use your web browser's developer tools for more in-depth performance analysis.

      Returns number

      frames per second

      q5.draw = function () {
      background(0.8);
      frameRate(1);
      textSize(64);

      text(getFPS(), -92, 20);
      };