requestAnimationFrame

时间:2017-11-09 22:23:40

标签: javascript performance google-chrome three.js requestanimationframe

在从内置示例(https://threejs.org/examples/#webgl_geometry_colors)中分析任何简单的THREE.js动画时,我注意到requestAnimationFrame存在问题。虽然回调本身执行得非常快(<1ms),但偶尔会持续约140ms,在此期间requestAnimationFrame不会触发。在最新版本的Chrome和Firefox上进行了测试,似乎问题仍然存在。可能导致它的原因是什么,可以做任何事情来达到稳定的60fps而不会中断?

enter image description here

0 个答案:

没有答案