def showFPS(texw, texh):
 global frames, t0
 t = time.time()
 if ((t - t0) > 1.0):
  fps = (frames / (t - t0))
  titlestr = ('%sx%s texture, %.1f FPS' % (texw, texh, fps))
  glfw.glfwSetWindowTitle(window, titlestr)
  t0 = t
  frames = 0
 frames += 1

def showFPS ( texw , texh ) : global frames , t0 t = time . time ( ) if ( ( t - t0 ) > 1.0 ) : fps = ( frames / ( t - t0 ) ) titlestr = ( '%sx%s texture, %.1f FPS' % ( texw , texh , fps ) ) glfw . glfwSetWindowTitle ( window , titlestr ) t0 = t frames = 0 frames += 1
showfps - calculate and report texture size and frames per second in the window title bar .