Instrument WebKit为CSS动画提供FPS信息? [英] Instrument WebKit to provide FPS information for CSS animations?

查看:173
本文介绍了Instrument WebKit为CSS动画提供FPS信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正试图评估WebKit的CSS动画在各种平台上的性能。我还没有能够找到一种方法来测试一个WebKit的构建,它将测量在执行动画时呈现的每秒帧数。有谁知道如何这样做吗?

I am currently trying to evaluate the performance of WebKit's CSS animations on various platforms. I've not been able to find a way to instrument a build of WebKit that will measure the frames-per-second rendered while performing an animation. Does anyone know how this can be done?

推荐答案

我决定在WebKit开发者列表中提出同样的问题,我会在这里重复。

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

基本上WebKit中的CSS动画可以使用2个路径之一来呈现。软件渲染路径,或硬件路径。在软件路径的情况下,渲染循环基于定时器,并且因此使用定时器并且计数定时器可以多快地激发将给出近似的FPS测量。在硬件路径的情况下,硬件将确定路径,并且当前没有办法收集该信息。

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.

这篇关于Instrument WebKit为CSS动画提供FPS信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆