code: function setupFPS() {
    stats.showPanel(0);  // 0: fps, 1: ms, 2: mb, 3+: custom
    if (guiState.showFps) {
      document.body.appendChild(stats.dom);
    }
  }
docs: Sets up a frames per second panel on the top-left of the window