Skip to content

Commit 4ebe0c4

Browse files
committed
Updated README
1 parent 87ac99d commit 4ebe0c4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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();
2626
stats.showPanel( 1 ); // 0: fps, 1: ms, 2: mb, 3+: custom
2727
document.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

0 commit comments

Comments
 (0)