Explorar el Código

Update stats every frame

Xander Luciano hace 7 años
padre
commit
eb9a2e3af0
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      examples/misc_controls_trackball.html

+ 3 - 1
examples/misc_controls_trackball.html

@@ -154,14 +154,16 @@
 			function animate() {
 
 				requestAnimationFrame( animate );
+				
 				controls.update();
+				
+				stats.update();
 
 			}
 
 			function render() {
 
 				renderer.render( scene, camera );
-				stats.update();
 
 			}