my first contribution - FPS meter

Hello, I would like to make a contribution (honestly, I think it will be difficult to get out of this debt, I received a lot here)
I hope this "invention" is not something invented before :P
It is a way to measure the frame rate of an application on the same device.
I hope to be useful.

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited January 2014
    I can't say I full understand the method yet (the dreaded "constrain attribute to attribute+1" :-S) but as someone incessantly interested in looping methods, I do like the novel way you made an every 1 second timer:

    When self.Time = ceil(self.Time)
         [behaviors]

    Edit: I see now that you used a custom attribute called self.time. I generally am weary of this because it can get confused with the built-in attribute, self.Time, but actually it works either way as far as a looping method (I prefer to name it something more unique such as self.FPStime).

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • CasualEvolutionCasualEvolution Member, PRO Posts: 543
    Hi @tatiang, thanks for the comment, here goes the fix for not confusing (in my original version there was no confusion, the variable was "tiempo", I speak Spanish :))

    I've been using this for quite some time and this method is simple and efficient.

    I hope you find it useful.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    And I get it now... you make it increase the counter as fast as possible and depending on frame rate, it tops out at a certain value.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.