Monday, October 01, 2012

mrdoob/stats.js

mrdoob/stats.js: "var stats = new Stats();
stats.setMode(1); // 0: fps, 1: ms

// Align top-left
stats.domElement.style.position = 'absolute';
stats.domElement.style.left = '0px';
stats.domElement.style.top = '0px';

document.body.appendChild( stats.domElement );

setInterval( function () {

stats.begin();

// your code goes here

stats.end();

}, 1000 / 60 );"

'via Blog this'