فهرست منبع

Update stats every frame

Xander Luciano 7 سال پیش
والد
کامیت
eb9a2e3af0
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  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();
 
 			}