I've adapted a snippet of code to log the fps during an animation
In a compiled jquery.js, search for "tick: function" and replace the beginning of this block of code by
- var lastTimeStamp = new Date().getTime();
- jQuery.extend( jQuery.fx, {
- tick: function() {
- var now = new Date().getTime();
- console.log(Math.floor(1000/(now - lastTimeStamp)));
- lastTimeStamp = now;
- var timers = jQuery.timers;
- ...
Now execute an animation with the console opened and watch the logs. Every time you see a number lower than average, it means that your browser had a hard time keeping up with the pace of the animation.
I can confirm that I see much more "dropped frames" with a 13ms interval than with a 20ms one. And I see none of them with 33. I've made some test with Firefox 3.6, I should try with old versions of IE as well.
Regards,
Louis-Rémi