6

I know that jQuery animations have a default frame rate. However, my animations look very different from computer to computer, some are smoother than others.

Is there a way to determine the actual outputted frame rate of jQuery animations?

Randomblue
  • 112,777
  • 145
  • 353
  • 547
  • 1
    have a look at http://stackoverflow.com/questions/459224/jquery-animate-and-browser-performance – Manuel van Rijn Nov 02 '11 at 16:47
  • I always understood that this depended on the speed of the individual computer and efficiency of the browser, which aren't things that jQuery can actually measure. – Blazemonger Nov 02 '11 at 16:48

1 Answers1

6

The default frame rate is 77fps, however, in different browsers, this can vary; "Chrome's fastest possible interval is about 10ms [while a]ll other browsers "sample" at about 20-30ms.". There are a lot of potential sources of animation lag from system to system and browser to browser, and there are several(1) different(2) projects(3) feeling out ways to help us develop with timing in mind. For now, you could try standardizing your frame rate using a plugin and see if that helps you time your animations more easily, or tweak it manually.

Andrew Kozak
  • 1,631
  • 2
  • 22
  • 35