默认每一帧执行时间是33毫秒

来源:4-1 总结流程概览

calimanco

2019-12-24

视频13:52左右,说到每一帧执行时间是22毫秒,但实际代码里是33毫秒,这里应该订正一下吧?

  // We start out assuming that we run at 30fps but then the heuristic tracking
  // will adjust this value to a faster fps if we get more frequent animation
  // frames.
  var previousFrameTime = 33;
  var activeFrameTime = 33;
写回答

1回答

Jokcy

2019-12-26

22毫秒是在每一帧里面留给react执行更新的时间

0
0

React源码深度解析 高级前端工程师必备技能

掌握React源码,让你的开发水平没有上限,更不惧前端未来的到来

1749 学习 · 336 问题

查看课程