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