Javascript 驱动的动画每秒帧数?
我正在开发一个网站,该网站大量滥用 Javascript 来实现一些持续的动画效果;即滚动背景。当在 Firefox 3.6.13 中以 1920x1080 最大化运行时,它似乎会滞后,有时甚至会有点跳跃。当以较小的尺寸运行时(调整到 50%-75%),它非常流畅。
我只是想知道是否有可能获取给定动画运行时丢弃的进程数或松散的 FPS。动画实际上是由 window.setInterval()
驱动的,延迟为 10(1/100 秒)。
I'm working on a site that abuses Javascript pretty heavily for some constant animation effects; namely scrolling backgrounds. When running maximized in Firefox 3.6.13 at 1920x1080 it seems to lag, and sometimes ends up a bit skippy. When running at a smaller size though (resized to 50%-75%) it's very smooth.
I was just wondering if its possible to grab the number of discarded processes, or loosely the FPS, that a given animation is running at. The animation is actually driven by window.setInterval()
with a delay of 10 (1/100 of a second).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://forum.jquery.com /topic/why-jquery-uses-77-fps-by-default-in-animation
感谢 Google 提供的链接:)
http://forum.jquery.com/topic/why-jquery-uses-77-fps-by-default-in-animation
Credit to Google for the link :)