use a quick timeout for headless, not requestanimationframe
optimize progress bar updating
Merge branch 'master' into gh-pages
measure both frame time and total time
Merge branch 'master' into gh-pages