How to accurately measure HTML5 Browser Framerates (FPS)?
问题 What is the most accurate way to measure framerates, i.e. FPS, in modern HTML5 browsers? I'm specifically interested in FPS for Canvas animations. http://weblogs.mozillazine.org/roc/archives/2010/11/measuring_fps.html will tell you that trying to measure framerate by counting how often your setTimeout runs is not accurate. The browser can run your Timeout callback multiple times between screen paints. Turns out Mozilla has a window.mozPaintCount https://developer.mozilla.org/en/DOM/window