File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ This class provides a simple info box that will help you monitor your code perfo
1313
1414### Screenshots ###
1515
16- ![ fps.png] ( https://cdn.rawgit .com/mrdoob/stats.js/master/files/fps.png )
17- ![ ms.png] ( https://cdn.rawgit .com/mrdoob/stats.js/master/files/ms.png )
18- ![ mb.png] ( https://cdn.rawgit .com/mrdoob/stats.js/master/files/mb.png )
19- ![ custom.png] ( https://cdn.rawgit .com/mrdoob/stats.js/master/files/custom.png )
16+ ![ fps.png] ( https://raw.githubusercontent .com/mrdoob/stats.js/master/files/fps.png )
17+ ![ ms.png] ( https://raw.githubusercontent .com/mrdoob/stats.js/master/files/ms.png )
18+ ![ mb.png] ( https://raw.githubusercontent .com/mrdoob/stats.js/master/files/mb.png )
19+ ![ custom.png] ( https://raw.githubusercontent .com/mrdoob/stats.js/master/files/custom.png )
2020
2121
2222### Usage ###
@@ -26,19 +26,19 @@ var stats = new Stats();
2626stats .showPanel ( 1 ); // 0: fps, 1: ms, 2: mb, 3+: custom
2727document .body .appendChild ( stats .dom );
2828
29- var update = function () {
29+ function animate () {
3030
3131 stats .begin ();
3232
3333 // monitored code goes here
3434
3535 stats .end ();
3636
37- requestAnimationFrame ( update );
37+ requestAnimationFrame ( animate );
3838
39- };
39+ }
4040
41- requestAnimationFrame ( update );
41+ requestAnimationFrame ( animate );
4242```
4343
4444
You can’t perform that action at this time.
0 commit comments