By mswatcher
via updates.html5rocks.com
Published: Jul 30 2012 / 07:58
Benchmarking browser graphics in a nutshell: draw as much as you can while maintaining a smooth frame rate. Once your framerate drops, you know how much you can draw per frame. End of post. ...No? Ok, I’ll explain some more.
Example time! Here’s a small code snippet with a benchmarking tick function. The tick function calls a draw function with an increasing draw load until the draw takes consistently longer than 33 ms.
Add your comment