Displaying fps in game?

MantoManto Member Posts: 796
edited December 2011 in Working with GS (Mac)
Is there any way to display your game's fps in game? Like in a corner of the screen?

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    nope sorry

    you can only check fps when running in the viewer, not in game
  • MantoManto Member Posts: 796
    I just found this http://gamesalad.com/g/52076 . I wonder how he/she has made that.
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    I can't vouch for its accuracy but its done with two attributes and three behaviors:

    Timer (every 0 seconds)
    ----Change Attribute self.myCounter To: self.myCounter +1

    Timer (every 1 seconds)
    ----Change Attribute self.myFPS To: self.myCounter
    ----Change Attribute self.myCounter To: 0

    Display Text: self.myFPS
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    yep like RThurman said thats how he did it. You can download that project in the new section of the gamesalad creator and check it out for yourself.
    no idea how accurate that is though.

    As far as the true fps that you see during the viewer, like i said you cant display that in game
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    I downloaded the project and tested it out with an old 2Gen ipod and it was pretty accurate! (Within 2/3 fps of the viewer at any given time.) I noticed that the demo project multiplied the fps by 2 to get a more accurate count (as compared to the viewer statistics).
  • MantoManto Member Posts: 796
    Thanks a lot! I will test it soon on my 3gs.
Sign In or Register to comment.