def on_some_frame(self, current, fmax):
this_time = time() - TIME0
fps = 1 / (this_time - self.last_frame_time)
Logger.info('App: on_frame {0: >2}: {1: >5} - {2: >3}'.format(
current, round(this_time, 3), str(int(fps))))
current += 1
self.last_frame_time = this_time
if current != fmax:
Clock.schedule_once(
lambda dt: self.on_some_frame(current, fmax), 0)
评论列表
文章目录