app.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:mmplayer 作者: Bakterija 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号