Browse Source

Update stats every frame

Xander Luciano 7 years ago
parent
commit
eb9a2e3af0
1 changed files with 3 additions and 1 deletions
  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();
 
 			}