lenlac Posted January 17, 2015 Share Posted January 17, 2015 Hello I am trying to check my fps. I have the game state in a seperate file: and in that file i have the function: the bodyInfo shows up find but the fps does not update it just shows -- Ty in advance. render: function() { // game.debug.body(player); this.game.debug.bodyInfo(this.player, 32, 200); this.game.debug.text(this.game.time.fps || '--', 2, 14, "#00ff00");}, Link to comment Share on other sites More sharing options...
MichaelD Posted January 17, 2015 Share Posted January 17, 2015 You can use http://darsa.in/fpsmeter/ Or you can see how it is done here: http://gamemechanicexplorer.com/#bullets-1 Link to comment Share on other sites More sharing options...
lenlac Posted January 17, 2015 Author Share Posted January 17, 2015 See this example: http://jsfiddle.net/lewster32/3Sx5h/ The key is game.time.advancedTiming without which the game.time.fps value will not be set. oh after reading i noticed that i just had to set the value of advancedTiming to True. Doh AR PS 100 FPS ! Link to comment Share on other sites More sharing options...
Recommended Posts