소스 검색

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();
 
 			}