<script src="script/stats.js"></script>
//stats var stats = new Stats(); stats.setMode(1); stats.domElement.style.position = 'absolute'; stats.domElement.left = '0px'; stats.domElement.top = '0px'; document.body.appendChild(stats.domElement); ... //function render(){ //camera.rotation.y += .01 //renderer.render(scene, camera); //requestAnimationFrame(render); stats.update(); //}