()
| 19 | })(); |
| 20 | |
| 21 | function fpsCounter() { |
| 22 | //fps stat--------------------------- |
| 23 | stats = new Stats(); |
| 24 | stats.setMode(0); |
| 25 | stats.domElement.style.position = 'fixed'; |
| 26 | stats.domElement.style.left = '0px'; |
| 27 | stats.domElement.style.top = '0px'; |
| 28 | $('html').append( stats.domElement ); |
| 29 | } |
| 30 | |
| 31 | $(function() { |
| 32 | fpsCounter(); |