Instrument WebKit to provide FPS information for CSS animations?

我怕爱的太早我们不能终老 提交于 2019-12-08 17:31:33

I decided to ask this same question on the WebKit dev list and got a decent response. I'll re-iterate that here.

Basically CSS animations in WebKit could be either rendered using one of 2 paths. The software rendering path, or the hardware path. In the case of the software path, the render loop is based on a timer and as such using a timer and counting how quickly the timer can fire will give an approximate FPS measurement. In the case of the hardware path the hardware will determine the path and there is no way to gather this information currently.

I'm rephrasing the response I got a bit, but this is the thrust of it I believe.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!